From 6a391918a87f655cf64b7f4911460fa5c2b5e5e2 Mon Sep 17 00:00:00 2001 From: Chris Briggs Date: Thu, 11 Jan 2024 13:23:06 +0000 Subject: [PATCH] Fixed yaml formatting issue in github ci workflow --- .github/workflows/ci.yml | 60 ++++++++++++++++++++-------------------- 1 file changed, 30 insertions(+), 30 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d95bb3..77ca1bf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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/docker-release.yml@v1.2.0 - 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/docker-release.yml@v1.2.0 + secrets: + DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USERNAME }} + DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }} + PAT_TOKEN: ${{ secrets.PAT_TOKEN }} + with: + image_base_name: india_forecast_app