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

MNT: Resurrect tox config to cover dev workflows and CI checks #1262

Merged
merged 47 commits into from
Oct 18, 2023

Conversation

effigies
Copy link
Member

@effigies effigies commented Oct 6, 2023

This PR aims to centralize a lot of details for of our project in a single place: tox.ini. We've had this file for a while, but it hasn't been updated in ages.

This fully replaces our custom tools/ci scripts with a maintained environment manager that works equally well locally and on CI. It thus also allows us to reduce our CI configuration significantly, as most jobs are now just running a corresponding tox environment.

This approach allows us to keep track of our minimum supported dependencies, both optional and required, and track the environments they can be reliably installed on. For example, we can document and test that we support a minimum dependency of scipy 1.6, but this is unavailable for 32-bit builds of Python 3.10+:

  # Scipy stopped producing win32 wheels at py310
  py3{8,9}-full-x86,x64: scipy >=1.6

This PR has gone on long enough. In separate pull requests, it would be good to:

  1. Figure out why pydicom@master is failing, so we can restore that in pre-release tests.
  2. Consider switching to ruff, a much faster and more fully-featured alternative to flake8.
  3. Build and publish docs from GitHub actions. We should also fix Sphinx warnings and start running with warnings as errors.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (0e03b94) 92.19% compared to head (a0dc67e) 92.19%.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1262   +/-   ##
=======================================
  Coverage   92.19%   92.19%           
=======================================
  Files          99       99           
  Lines       12457    12458    +1     
  Branches     2559     2559           
=======================================
+ Hits        11485    11486    +1     
  Misses        648      648           
  Partials      324      324           
Files Coverage Δ
nibabel/__init__.py 100.00% <100.00%> (ø)
nibabel/info.py 100.00% <ø> (ø)
nibabel/minc2.py 90.47% <ø> (ø)

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

@effigies effigies force-pushed the mnt/tox branch 4 times, most recently from f9fa917 to f090354 Compare October 10, 2023 12:45
@effigies effigies force-pushed the mnt/tox branch 6 times, most recently from 3ac94be to 8a60853 Compare October 11, 2023 12:11
@effigies
Copy link
Member Author

@matthew-brett @oesteban What do you think?

@effigies effigies merged commit 1f7836d into nipy:master Oct 18, 2023
50 checks passed
@effigies effigies deleted the mnt/tox branch October 18, 2023 12:13
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.

1 participant