-
Notifications
You must be signed in to change notification settings - Fork 165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selective CI based on changes to a domain #504
Conversation
.github/workflows/pr.yml
Outdated
- 'src/${{ matrix.domain}}/**' | ||
- 'tests/unit_tests/${{ matrix.domain }}/**' | ||
- CMakeLists.txt | ||
- '.github/workflows/**' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would also add examples
and include
directories because we test examples and headers could affect the build.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree. Thanks, @rscohn2 !
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am looking for a more maintainable way to specify the files that will trigger a test.
Co-authored-by: Dai-Ni Hsieh <[email protected]>
8587204
to
d6a5ae4
Compare
Description
Selective CI based on changes to a domain. Requested by @sknepper.
I tested that the filter works by making changes to RNG and DFT, src and tests directories. I undid the changes to prepare to merge.
It does not skip the first few steps because they finish almost immediately. It skips the expensive steps starting with oneapi install.