@@ -29,13 +29,18 @@ jobs:
29
29
30
30
- name : Install dependencies
31
31
run : |
32
- python -m pip install --upgrade pip setuptools wheel
33
- python -m pip --no-cache-dir --quiet install --upgrade --pre .[test]
32
+ python -m pip install uv
33
+ uv pip install --system --upgrade pip setuptools wheel
34
+ uv pip --no-cache --quiet install --system --upgrade --pre ".[all,test]"
34
35
python -m pip list
35
36
37
+ - name : List release candidates, alpha, and beta releases
38
+ run : |
39
+ python -m pip list | egrep '[0-9](rc|[ab])[0-9]'
40
+
36
41
- name : Test with pytest
37
42
run : |
38
- pytest --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
43
+ pytest --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
39
44
40
45
scipy :
41
46
@@ -53,19 +58,19 @@ jobs:
53
58
with :
54
59
python-version : ${{ matrix.python-version }}
55
60
56
- # Use nightly SciPy wheels from Anaconda's PyPI
57
- # c.f. https://twitter.com/ralfgommers/status/1419917265781334025
58
61
- name : Install dependencies
59
62
run : |
60
- python -m pip install --upgrade pip setuptools wheel
61
- python -m pip --no-cache-dir --quiet install --upgrade .[test]
62
- python -m pip uninstall --yes scipy
63
- python -m pip install --upgrade --index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple scipy
63
+ python -m pip install uv
64
+ uv pip install --system --upgrade pip setuptools wheel
65
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
66
+ uv pip uninstall --system scipy
67
+ # uv wants to upgrade dependencies (numpy) to a dev release too, so don't --upgrade
68
+ uv pip install --system --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple scipy
64
69
python -m pip list
65
70
66
71
- name : Test with pytest
67
72
run : |
68
- pytest --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
73
+ pytest --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
69
74
70
75
iminuit :
71
76
@@ -83,15 +88,16 @@ jobs:
83
88
python-version : ${{ matrix.python-version }}
84
89
- name : Install dependencies
85
90
run : |
86
- python -m pip install --upgrade pip setuptools wheel
87
- python -m pip --no-cache-dir --quiet install --upgrade .[test]
88
- python -m pip uninstall --yes iminuit
89
- python -m pip install --upgrade cython
90
- python -m pip install --upgrade git+https://github.com/scikit-hep/iminuit.git
91
+ python -m pip install uv
92
+ uv pip install --system --upgrade pip setuptools wheel
93
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
94
+ uv pip uninstall --system iminuit
95
+ uv pip install --system --upgrade cython
96
+ uv pip install --system --upgrade git+https://github.com/scikit-hep/iminuit.git
91
97
python -m pip list
92
98
- name : Test with pytest
93
99
run : |
94
- pytest --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
100
+ pytest --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
95
101
96
102
uproot5 :
97
103
@@ -109,14 +115,15 @@ jobs:
109
115
python-version : ${{ matrix.python-version }}
110
116
- name : Install dependencies
111
117
run : |
112
- python -m pip install --upgrade pip setuptools wheel
113
- python -m pip --no-cache-dir --quiet install --upgrade .[test]
114
- python -m pip uninstall --yes uproot
115
- python -m pip install --upgrade git+https://github.com/scikit-hep/uproot4.git
118
+ python -m pip install uv
119
+ uv pip install --system --upgrade pip setuptools wheel
120
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
121
+ uv pip uninstall --system uproot
122
+ uv pip install --system --upgrade git+https://github.com/scikit-hep/uproot5.git
116
123
python -m pip list
117
124
- name : Test with pytest
118
125
run : |
119
- pytest --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
126
+ pytest --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
120
127
121
128
matplotlib :
122
129
@@ -136,15 +143,18 @@ jobs:
136
143
137
144
- name : Install dependencies
138
145
run : |
139
- python -m pip install --upgrade pip setuptools wheel
140
- python -m pip --no-cache-dir --quiet install --upgrade .[test]
141
- python -m pip uninstall --yes matplotlib
142
- # Need to use --extra-index-url as dependencies aren't on scipy-wheels-nightly package index.
146
+ python -m pip install uv
147
+ uv pip install --system --upgrade pip setuptools wheel
148
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
149
+ uv pip uninstall --system matplotlib
150
+ # Need to use --extra-index-url as all dependencies aren't on scientific-python-nightly-wheels package index.
143
151
# Need to use --pre as dev releases will need priority over stable releases.
144
- python -m pip install \
145
- --upgrade \
152
+ # Note that uv and pip differ on --extra-index-url priority
153
+ # c.f. https://github.com/scientific-python/upload-nightly-action/issues/76
154
+ uv pip install --system \
146
155
--pre \
147
- --extra-index-url https://pypi.anaconda.org/scipy-wheels-nightly/simple \
156
+ --index-url https://pypi.org/simple/ \
157
+ --extra-index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
148
158
matplotlib
149
159
150
160
- name : List installed Python packages
@@ -170,11 +180,12 @@ jobs:
170
180
python-version : ${{ matrix.python-version }}
171
181
- name : Install dependencies
172
182
run : |
173
- python -m pip install --upgrade pip setuptools wheel
174
- python -m pip --no-cache-dir --quiet install --upgrade .[test]
175
- python -m pip uninstall --yes pytest
176
- python -m pip install --upgrade git+https://github.com/pytest-dev/pytest.git
183
+ python -m pip install uv
184
+ uv pip install --system --upgrade pip setuptools wheel
185
+ uv pip --no-cache --quiet install --system --upgrade ".[all,test]"
186
+ uv pip uninstall --system pytest
187
+ uv pip install --system --upgrade git+https://github.com/pytest-dev/pytest.git
177
188
python -m pip list
178
189
- name : Test with pytest
179
190
run : |
180
- pytest --ignore tests/benchmarks/ --ignore tests/contrib --ignore tests/test_notebooks.py
191
+ pytest --ignore tests/contrib --ignore tests/benchmarks --ignore tests/test_notebooks.py
0 commit comments