Skip to content

Commit

Permalink
ci: Move file change filter definitions to a file (#988)
Browse files Browse the repository at this point in the history
Cleanup PR. Centralises the file filter used by `dorny/paths-filter`
when detecting changes in a single `.yml`.
  • Loading branch information
aborgna-q authored May 1, 2024
1 parent 187e33d commit fc6f17f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 10 deletions.
13 changes: 13 additions & 0 deletions .github/change-filters.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# Filters used by [dorny/path-filters](https://github.com/dorny/paths-filter)
# to detect changes in each subproject, and only run the corresponding jobs.

rust:
- "hugr/**"
- "Cargo.toml"
- "specification/schema/**"

python:
- "hugr-py/**"
- "pyproject.toml"
- "poetry.lock"
- "specification/schema/**"
6 changes: 1 addition & 5 deletions .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,7 @@ jobs:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
python:
- 'hugr-py/**'
- 'pyproject.toml'
- 'specification/schema/**'
filters: .github/change-filters.yml

check:
needs: changes
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci-rs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,7 @@ jobs:
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
rust:
- 'hugr/**'
- 'Cargo.toml'
- 'specification/schema/**'
filters: .github/change-filters.yml

check:
needs: changes
Expand Down

0 comments on commit fc6f17f

Please sign in to comment.