Run pytest
in CI only in PRs that update either sources or tests
#80
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Since running
pytest
is pretty slow (~1h), let's mitigate our contribution on global warming by preventing to run the corresponding CI step when not needed.I used https://github.com/dorny/paths-filter that seems quite popular.
Note that this change only targets PRs, not CI pipelines on branches. We just need green CI on PRs for merging.
📚 Documentation preview 📚: https://jaxsim--80.org.readthedocs.build//80/