Skip to content

Commit

Permalink
Fixed yaml formatting issue in github ci workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
confusedmatrix committed Jan 11, 2024
1 parent 7c795ec commit 6a39191
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,40 @@ on: push

jobs:
lint_and_test:
name: Lint the code and run the tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2
name: Lint the code and run the tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v2

- name: Install poetry
run: pipx install poetry==1.7.1
- name: Install poetry
run: pipx install poetry==1.7.1

- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: poetry
- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.9'
cache: poetry

- name: Install python dependencies
run: poetry install
- name: Install python dependencies
run: poetry install

- name: Lint
run: make lint
- name: Lint
run: make lint

- name: Run the tests
run: poetry run pytest --cov=india_forecast_app --cov-report=xml
- name: Run the tests
run: poetry run pytest --cov=india_forecast_app --cov-report=xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3

release:
needs: [lint_and_test]
if: github.ref_name == 'main'
uses: openclimatefix/.github/.github/workflows/[email protected]
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
image_base_name: india_forecast_app
needs: [lint_and_test]
if: github.ref_name == 'main'
uses: openclimatefix/.github/.github/workflows/[email protected]
secrets:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
PAT_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
image_base_name: india_forecast_app

0 comments on commit 6a39191

Please sign in to comment.