-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed yaml formatting issue in github ci workflow
- Loading branch information
1 parent
7c795ec
commit 6a39191
Showing
1 changed file
with
30 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |