(chore): derive CI matrix from hatch env#1998
Conversation
ilan-gold
commented
May 27, 2025
- Just like (chore): derive CI matrix from hatch env scanpy#3607
- Tests added
- Release note added (or unnecessary)
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1998 +/- ##
==========================================
- Coverage 87.10% 85.07% -2.03%
==========================================
Files 46 46
Lines 6949 6949
==========================================
- Hits 6053 5912 -141
- Misses 896 1037 +141 |
|
Ah, I just realized: Since we do hatch run ${{ matrix.env.name }}:runInstead of E.g. when we do |
Why did I have to add the |
|
I don't think we need an equivalent of scverse/scanpy#3607 (comment) here. If the case arises where we have non-experimental extras, then we can revisit. But xarray is both experimental and likely to be removed in the enxt released in a standalone package. I foresee a scenario where we support array libraries in the future, but in that case I would just make a new |
|
Re: testing for coverage, I would be in favor of doing it for each type here. |
|
sure, why not! would make things simpler too. The reason we had it this way is as you said; it’s very unlikely to have three branches. /edit: done
because while we have a coverage and non-coverage version of the test step, they both had shared options:
OK. I think then the |
There was a problem hiding this comment.
looks good, but why are the tests so slow? (that’s not new, I just saw it now)
before you merge, please edit the rules in https://github.com/scverse/anndata/settings/rules
- In both rulesets (version branch and default branch)
- go to “Require status checks to pass” → “Show additional settings” → “Status checks that are required”
- remove all
pytest (…)entries - remove the
check-buildentry - add the
checkentry instead - save
- refresh this PR page to see that you can now merge with a green button
I would assume it's the xarray tests + zarr v3/v2 both being tested, both of which ballooned the tests here by quite a bit. Another reason to remove the xarray part of the codebase. I can also look into perhaps doing some more reuse of fixtures or cutting down on number of tests. |
|
|
||
| - name: Run Pytest (treat warnings as errors) | ||
| if: matrix.test-type == 'strict-warning' | ||
| run: pytest --strict-warnings -n auto |
There was a problem hiding this comment.
oof, this should have stayed in.
