Skip to content

Commit fee40d1

Browse files
committed
fix ci to run tests on dependency changes
1 parent 3290c85 commit fee40d1

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Diff for: .github/file-filters.yml

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ doc_files: &doc_files
1111
- package.json
1212
- package-lock.json
1313

14+
poetry_all: &poetry_all
15+
- pyproject.toml
16+
- poetry.lock
17+
1418
python_all: &python_all
1519
- "**/*.py"
1620

Diff for: .github/workflows/ci.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
outputs:
2525
documentation: ${{ steps.changes.outputs.documentation_all }}
2626
python: ${{ steps.changes.outputs.python_all }}
27+
poetry: ${{ steps.changes.outputs.poetry_all }}
2728
yaml: ${{ steps.changes.outputs.yaml_all }}
2829
steps:
2930
- name: "Check out repository code"
@@ -93,7 +94,8 @@ jobs:
9394
run: "yamllint -s ."
9495

9596
python-tests:
96-
if: needs.files-changed.outputs.python == 'true'
97+
if: needs.files-changed.outputs.python == 'true' ||
98+
needs.files-changed.outputs.poetry == 'true'
9799
needs: ["files-changed"]
98100
runs-on: "ubuntu-latest"
99101
strategy:

0 commit comments

Comments
 (0)