Skip to content

Commit

Permalink
test - and hold most runner tests for now
Browse files Browse the repository at this point in the history
  • Loading branch information
p2edwards committed Nov 23, 2024
1 parent 2ee3512 commit 58e3a6f
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@ jobs:
permissions:
pull-requests: read

outputs:
npm-test: ${{ steps.filter.outputs.should-run-npm-test }}
pytest: ${{ steps.filter.outputs.should-run-pytest }}
darker: ${{ steps.filter.outputs.should-run-darker }}
new-unknown-files: ${{ steps.filter.outputs.new-files-at-root-level }}
# # this is for job-level control
# outputs:
# npm-test: ${{ steps.filter.outputs.should-run-npm-test }}
# pytest: ${{ steps.filter.outputs.should-run-pytest }}
# darker: ${{ steps.filter.outputs.should-run-darker }}
# new-unknown-files: ${{ steps.filter.outputs.new-files-at-root-level }}

steps:
- name: Checkout source code (merge ref)
Expand All @@ -30,11 +31,11 @@ jobs:
filters: .github/filters.yml

# echoing (for testing purposes)
- if: steps.filter.outputs.npm-test
run: echo 'frontend files changed; should run npm-test.yml'\
- if: steps.filter.outputs.pytest
- if: steps.filter.outputs.should-run-npm-test
run: echo 'frontend files changed; should run npm-test.yml'
- if: steps.filter.outputs.should-run-pytest
run: echo 'backend files changed; should run pytest.yml'
- if: steps.filter.outputs.darker
- if: steps.filter.outputs.should-run-darker
run: echo 'python files changed; should run darker.yml'
- if: steps.filter.outputs.new-unknown-files
- if: steps.filter.outputs.new-files-at-root-level
run: echo 'unlisted files changed; will likely run pytest and npm-test'
2 changes: 2 additions & 0 deletions .github/workflows/npm-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ jobs:
build:
runs-on: ubuntu-20.04

if: ${{ 'false' == 'true' }} # hold it

strategy:

matrix:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
jobs:
build:
runs-on: ubuntu-20.04

if: ${{ 'false' == 'true' }} # hold it

env:
DATABASE_URL: postgis://kobo:kobo@localhost:5432/kpi_test
DJANGO_LANGUAGE_CODES: "ar cs de-DE en es fr hi ku pl pt tr zh-hans"
Expand Down

0 comments on commit 58e3a6f

Please sign in to comment.