Skip to content
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

Closed
wants to merge 13 commits into from

Conversation

rscohn2
Copy link
Member

@rscohn2 rscohn2 commented May 31, 2024

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.

@rscohn2 rscohn2 changed the title Selective CI basecd on changes to a domain Selective CI based on changes to a domain May 31, 2024
@rscohn2 rscohn2 marked this pull request as ready for review May 31, 2024 13:13
.github/workflows/pr.yml Outdated Show resolved Hide resolved
- 'src/${{ matrix.domain}}/**'
- 'tests/unit_tests/${{ matrix.domain }}/**'
- CMakeLists.txt
- '.github/workflows/**'
Copy link
Contributor

@dnhsieh-intel dnhsieh-intel May 31, 2024

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.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree. Thanks, @rscohn2 !

Copy link
Member Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants