@@ -2,23 +2,27 @@ name: Change detection
22on :
33 workflow_call :
44 outputs :
5- run-tests :
5+ run-cookie :
66 description : Whether or not run the cookiecutter tests
7- value : ${{ jobs.change-detection.outputs.run-tests || false }}
7+ value : ${{ jobs.change-detection.outputs.run-cookie || false }}
8+ run-rr :
9+ description : Whether or not run the repo-review tests
10+ value : ${{ jobs.change-detection.outputs.run-cookie || false }}
811
912jobs :
1013 change-detection :
1114 name : Identify source changes
1215 runs-on : ubuntu-latest
1316 timeout-minutes : 1
1417 outputs :
15- run-tests : ${{ steps.tests-changes.outputs.run-tests || false }}
18+ run-cookie : ${{ steps.cookie-changes.outputs.run-cookie || false }}
19+ run-rr : ${{ steps.rr-changes.outputs.run-rr || false }}
1620 steps :
1721 - uses : actions/checkout@v3
1822
1923 - name : Get a list of the changed runtime-related files
2024 if : github.event_name == 'pull_request'
21- id : changed-testable -files
25+ id : changed-cookie -files
2226 uses : Ana06/get-changed-files@v2.2.0
2327 with :
2428 filter : |
3135 - name : Set a flag for running the tests
3236 if : >-
3337 github.event_name != 'pull_request' ||
34- steps.changed-testable-files.outputs.added_modified_renamed != ''
35- id : tests-changes
36- run : echo "run-tests=true" >> "${GITHUB_OUTPUT}"
38+ steps.changed-cookie-files.outputs.added_modified_renamed != ''
39+ id : cookie-changes
40+ run : echo "run-cookie=true" >> "${GITHUB_OUTPUT}"
41+
42+ - name : Get a list of the changed runtime-related files
43+ if : github.event_name == 'pull_request'
44+ id : changed-rr-files
45+ uses : Ana06/get-changed-files@v2.2.0
46+ with :
47+ filter : |
48+ tests/**
49+ .github/workflows/ci.yml
50+ .github/workflows/reusable-rr-tests.yml
51+ noxfile.py
52+ src/**
53+ pyproject.toml
54+ - name : Set a flag for running the tests
55+ if : >-
56+ github.event_name != 'pull_request' ||
57+ steps.changed-rr-files.outputs.added_modified_renamed != ''
58+ id : rr-changes
59+ run : echo "run-rr=true" >> "${GITHUB_OUTPUT}"
0 commit comments