Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben-EJ committed May 17, 2024
1 parent ae77204 commit ed51955
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ jobs:
- 'air-quality-backend/src/etl/**'
api:
- 'air-quality-backend/src/api/**'
etl_tests:
- 'air-quality-backend/tests/etl_tests/**'
api_tests:
- 'air-quality-backend/tests/api_tests/**'
run-lint:
runs-on: ubuntu-latest
Expand All @@ -37,16 +41,16 @@ jobs:
uses: conda-incubator/setup-miniconda@v3
with:
channels: conda-forge
environment-file: air-quality-backend/conda/test_environment.yml
environment-file: air-quality-backend/conda/linting_environment.yml
auto-activate-base: false
activate-environment: unit-test
activate-environment: linting-env

- name: Run lint check
run: python -m flake8 --append-config air-quality-backend/.flake8 air-quality-backend

etl:
etl-testing:
needs: changes
if: ${{ needs.changes.outputs.etl == 'true' }}
if: ${{ needs.changes.outputs.etl == 'true' || needs.changes.outputs.etl_tests }}
runs-on: ubuntu-latest
defaults:
run:
Expand All @@ -72,9 +76,9 @@ jobs:
coverageFile: air-quality-backend/tests/coverage/etl_test_report.xml
token: ${{ secrets.GITHUB_TOKEN }}

api:
api-testing:
needs: changes
if: ${{ needs.changes.outputs.api == 'true' }}
if: ${{ needs.changes.outputs.api == 'true' || needs.changes.outputs.api_tests }}
runs-on: ubuntu-latest
defaults:
run:
Expand Down
Binary file added air-quality-backend/conda/linting_environment.yml
Binary file not shown.

0 comments on commit ed51955

Please sign in to comment.