Skip to content

Commit

Permalink
chore: trigger CI if Makefile changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RomanBredehoft committed Sep 11, 2023
1 parent 857253d commit b153b29
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,13 @@ jobs:
- deps_licenses/licenses_linux_user.txt.md5
conftest:
- conftest.py
makefile:
- Makefile
# Run determinism test. The only case where this is not run is for a PR that does not modify
# anything in the source code or the determinism test file. This step is also triggered
# if any dependency has been updated or the conftest.py file has changed
# if any dependency has been updated or if some changes were found in the conftest.py as well
# as the Makefile
- name: Determinism
id: determinism
if: |
Expand All @@ -521,21 +524,24 @@ jobs:
&& steps.changed-files-in-pr.outputs.src_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.dependencies_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.conftest_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.makefile_any_changed == 'false'
)
&& steps.install-deps.outcome == 'success'
&& steps.make-pcc.outcome == 'success'
&& !cancelled()
run: |
make determinism
# Build the documentation if anything changed in our documentation files or in the source code
# Build the documentation if anything changed in our documentation files, in the source code
# or in the makefile
- name: Build docs
id: build-docs
if: |
!(
steps.changed-files-in-pr.outcome == 'success'
&& steps.changed-files-in-pr.outputs.docs_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.src_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.makefile_any_changed == 'false'
)
&& steps.install-deps.outcome == 'success'
&& steps.make-pcc.outcome == 'success'
Expand Down Expand Up @@ -624,7 +630,8 @@ jobs:

# Run Pytest on a subset of our tests if the source code or our tests has changed, and if the
# current workflow does no take place in a weekly or release CI. This step is also triggered
# if any dependency has been updated or the conftest.py files has changed
# if any dependency has been updated or if some changes were found in the conftest.py as well
# as the Makefile
# If regular tests failed, a following script checks for flaky tests. If all failed tests
# are known flaky tests, they are re-run. Otherwise, the step exits with status 1.
# The 'bash +e {0}' is added here in order to make sure that the step does not exit directly
Expand All @@ -638,6 +645,7 @@ jobs:
|| steps.changed-files-in-pr.outputs.tests_any_changed == 'true'
|| steps.changed-files-in-pr.outputs.dependencies_any_changed == 'true'
|| steps.changed-files-in-pr.outputs.conftest_any_changed == 'true'
|| steps.changed-files-in-pr.outputs.makefile_any_changed == 'true'
)
&& steps.conformance.outcome == 'success'
&& !cancelled()
Expand Down Expand Up @@ -686,7 +694,7 @@ jobs:
# Run Pytest on codeblocks if the source code or any markdown has changed, or if this is
# part of the weekly or release CI. This step is also triggered if any dependency has been
# updated
# updated or if some changes were found in the Makefile
- name: PyTest CodeBlocks
if: |
(
Expand All @@ -695,6 +703,7 @@ jobs:
&& steps.changed-files-in-pr.outputs.codeblocks_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.src_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.dependencies_any_changed == 'false'
&& steps.changed-files-in-pr.outputs.makefile_any_changed == 'false'
)
|| fromJSON(env.IS_WEEKLY)
|| fromJSON(env.IS_RELEASE)
Expand Down

0 comments on commit b153b29

Please sign in to comment.