Skip to content

Commit

Permalink
style: presentation
Browse files Browse the repository at this point in the history
  • Loading branch information
p2edwards committed Dec 2, 2024
1 parent 8807a15 commit 5682f59
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions .github/filters.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# If any file changed matches any of the filters in a list, the output for that
# list is set to the string 'true'.

darker:
- '{kpi,kobo,hub}/**/*.py' # .py
- 'pyproject.toml' # rules
- '.github/workflows/darker.yml' # ci

pytest:
- '{kpi,kobo,hub}/**/*.!(md)' # backend
- 'dependencies/**/*.!(md)' # pip
- 'pyproject.toml' # (can affect build/tests)
- '.github/workflows/pytest.yml' # ci

darker:
- '{kpi,kobo,hub}/**/*.py' # .py
- 'pyproject.toml' # rules
- '.github/workflows/darker.yml' # ci

npm-test:
- '{jsapp,test,webpack,static,scripts}/**/*.!(md|py|sh|bash)' # frontend
- '{package*.json,patches/*.patch,scripts/copy_fonts.py}' # npm + postinstall
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ jobs:
name: Detect changed files
with: { filters: .github/filters.yml }
outputs:
pytest: ${{ steps.filter.outputs.pytest }}
darker: ${{ steps.filter.outputs.darker }}
unknown: ${{ steps.filter.outputs.unknown }}
pytest: ${{ steps.filter.outputs.pytest }}
npm-test: ${{ steps.filter.outputs.npm-test }}
unknown: ${{ steps.filter.outputs.unknown }}

darker:
needs: changes
uses: ./.github/workflows/darker.yml
if: needs.changes.outputs.darker == 'true'

pytest:
needs: changes
Expand All @@ -25,11 +30,6 @@ jobs:
needs.changes.outputs.pytest == 'true' ||
needs.changes.outputs.unknown == 'true'
darker:
needs: changes
uses: ./.github/workflows/darker.yml
if: needs.changes.outputs.darker == 'true'

npm-test:
needs: changes
uses: ./.github/workflows/npm-test.yml
Expand Down

0 comments on commit 5682f59

Please sign in to comment.