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

Add Nox session to CI to ensure consistency of pyproject.toml with pinned requirements #2794

Merged
merged 15 commits into from
Aug 28, 2024

Conversation

namurphy
Copy link
Member

@namurphy namurphy commented Jul 26, 2024

This PR adds the validate_requirements session for Nox. This session makes sure that it is possible to simultaneously install the pinned requirements in ci_requirements/ with all of the dependency sets in pyproject.toml.

While we would normally be able to tell when this happens with the docs and tests Nox sessions, we wouldn't get an error message. Adding this check to CI will help tell contributors what to do when they run into this problem (i.e., run nox -s requirements).

@github-actions github-actions bot added testing CI Related to continuous integration requirements Related to updating requirements GitHub Actions A continuous integration platform for automating tests and other tasks (see .github/ directory) maintenance General updates to package infrastructure python Pull requests that update Python code nox Related to the nox automation software labels Jul 26, 2024
Copy link

codecov bot commented Jul 26, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.36%. Comparing base (4a34c64) to head (8e980f0).
Report is 58 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2794       /-   ##
==========================================
- Coverage   95.16%   94.36%   -0.80%     
==========================================
  Files         107      107              
  Lines        9608     9608              
  Branches     2225     2225              
==========================================
- Hits         9143     9067      -76     
- Misses        277      347       70     
- Partials      188      194        6     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions github-actions bot added the packaging Related to packaging or distribution label Jul 26, 2024
@namurphy namurphy marked this pull request as ready for review July 26, 2024 22:40
@namurphy namurphy requested a review from a team as a code owner July 26, 2024 22:40
@namurphy namurphy requested review from ejohnson-96 and removed request for a team and ejohnson-96 July 26, 2024 22:40
@github-actions github-actions bot added the linters Code linters and autoformatters label Jul 27, 2024
@namurphy namurphy merged commit 27da994 into PlasmaPy:main Aug 28, 2024
19 of 21 checks passed
@namurphy namurphy deleted the test-requirements-consistency branch August 28, 2024 22:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Related to continuous integration GitHub Actions A continuous integration platform for automating tests and other tasks (see .github/ directory) linters Code linters and autoformatters maintenance General updates to package infrastructure nox Related to the nox automation software packaging Related to packaging or distribution python Pull requests that update Python code requirements Related to updating requirements testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant