File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3333 name : Run Core tests
3434 command : env PYTEST_ADDOPTS="--exitfirst" make test
3535
36+ - run :
37+ name : Check NumPy typing against latest 3 minor versions
38+ command : for i in {1..3}; do VERSION=$(.circleci/get-numpy-version.py prev) && pip install numpy==$VERSION && make check-types; done
39+
3640 - persist_to_workspace :
3741 root : .
3842 paths :
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env python
2+
3+ import sys
4+ from packaging import version
5+
6+ import numpy
7+
8+
9+ def prev () -> str :
10+ major , minor , _ = _installed ().release
11+
12+ if minor == 0 :
13+ exit (1 )
14+
15+ minor -= 1
16+ print (f"{ major } .{ minor } .0" )
17+ exit ()
18+
19+
20+ def _installed () -> version :
21+ return version .parse (numpy .__version__ )
22+
23+
24+ if __name__ == "__main__" :
25+ globals ()[sys .argv [1 ]]()
You can’t perform that action at this time.
0 commit comments