Skip to content

Commit e90efa9

Browse files
committed
Run all tests with Python 3.13
1 parent e5553a3 commit e90efa9

File tree

2 files changed

+64
-31
lines changed

2 files changed

+64
-31
lines changed

.github/workflows/build.yml

+33-17
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,39 @@ jobs:
2424
matrix:
2525
include:
2626
- os: ubuntu-latest
27-
python-version: "3.12"
27+
python-version: "3.13"
2828
TEST_FILES: tests/test_actionAngle.py
2929
REQUIRES_PYNBODY: false
3030
REQUIRES_ASTROPY: false
3131
REQUIRES_ASTROQUERY: false
3232
REQUIRES_NUMBA: false
3333
REQUIRES_JAX: false
3434
- os: ubuntu-latest
35-
python-version: "3.12"
35+
python-version: "3.13"
3636
TEST_FILES: tests/test_sphericaldf.py
3737
REQUIRES_PYNBODY: false
3838
REQUIRES_ASTROPY: false
3939
REQUIRES_ASTROQUERY: false
4040
REQUIRES_NUMBA: false
4141
REQUIRES_JAX: true
4242
- os: ubuntu-latest
43-
python-version: "3.12"
43+
python-version: "3.13"
4444
TEST_FILES: tests/test_actionAngleTorus.py tests/test_conversion.py tests/test_galpypaper.py tests/test_import.py tests/test_interp_potential.py tests/test_kuzminkutuzov.py tests/test_util.py
4545
REQUIRES_PYNBODY: false
4646
REQUIRES_ASTROPY: false
4747
REQUIRES_ASTROQUERY: false
4848
REQUIRES_NUMBA: false
4949
REQUIRES_JAX: false
5050
- os: ubuntu-latest
51-
python-version: "3.12"
51+
python-version: "3.13"
5252
TEST_FILES: tests/test_SpiralArmsPotential.py tests/test_potential.py tests/test_scf.py tests/test_snapshotpotential.py
5353
REQUIRES_PYNBODY: true
5454
REQUIRES_ASTROPY: false
5555
REQUIRES_ASTROQUERY: false
5656
REQUIRES_NUMBA: false
5757
REQUIRES_JAX: false
5858
- os: ubuntu-latest
59-
python-version: "3.12"
59+
python-version: "3.13"
6060
TEST_FILES: tests/test_quantity.py tests/test_coords.py
6161
REQUIRES_PYNBODY: false
6262
# needs to be separate for different config
@@ -65,69 +65,85 @@ jobs:
6565
REQUIRES_NUMBA: false
6666
REQUIRES_JAX: false
6767
- os: ubuntu-latest
68-
python-version: "3.12"
68+
python-version: "3.13"
6969
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
7070
REQUIRES_PYNBODY: true
7171
REQUIRES_ASTROPY: true
7272
REQUIRES_ASTROQUERY: true
7373
REQUIRES_NUMBA: false
7474
REQUIRES_JAX: false
7575
- os: ubuntu-latest
76-
python-version: "3.12"
76+
python-version: "3.13"
7777
TEST_FILES: tests/test_orbit.py tests/test_orbits.py -k 'not test_energy_jacobi_conservation'
7878
REQUIRES_PYNBODY: true
7979
REQUIRES_ASTROPY: true
8080
REQUIRES_ASTROQUERY: true
8181
REQUIRES_NUMBA: false
8282
REQUIRES_JAX: false
8383
- os: ubuntu-latest
84-
python-version: "3.12"
84+
python-version: "3.13"
8585
TEST_FILES: tests/test_evolveddiskdf.py
8686
REQUIRES_PYNBODY: false
8787
REQUIRES_ASTROPY: false
8888
REQUIRES_ASTROQUERY: false
8989
REQUIRES_NUMBA: false
9090
REQUIRES_JAX: false
9191
- os: ubuntu-latest
92-
python-version: "3.12"
92+
python-version: "3.13"
9393
TEST_FILES: tests/test_jeans.py tests/test_dynamfric.py
9494
REQUIRES_PYNBODY: false
9595
REQUIRES_ASTROPY: false
9696
REQUIRES_ASTROQUERY: false
9797
REQUIRES_NUMBA: false
9898
REQUIRES_JAX: false
9999
- os: ubuntu-latest
100-
python-version: "3.12"
100+
python-version: "3.13"
101101
TEST_FILES: tests/test_qdf.py tests/test_pv2qdf.py tests/test_streamgapdf_impulse.py tests/test_noninertial.py
102102
REQUIRES_PYNBODY: false
103103
REQUIRES_ASTROPY: false
104104
REQUIRES_ASTROQUERY: false
105105
REQUIRES_NUMBA: true
106106
REQUIRES_JAX: false
107107
- os: ubuntu-latest
108-
python-version: "3.12"
108+
python-version: "3.13"
109109
TEST_FILES: tests/test_streamgapdf.py
110110
REQUIRES_PYNBODY: false
111111
REQUIRES_ASTROPY: false
112112
REQUIRES_ASTROQUERY: false
113113
REQUIRES_NUMBA: false
114114
REQUIRES_JAX: false
115115
- os: ubuntu-latest
116-
python-version: "3.12"
116+
python-version: "3.13"
117117
TEST_FILES: tests/test_diskdf.py
118118
REQUIRES_PYNBODY: false
119119
REQUIRES_ASTROPY: false
120120
REQUIRES_ASTROQUERY: false
121121
REQUIRES_NUMBA: false
122122
REQUIRES_JAX: false
123123
- os: ubuntu-latest
124-
python-version: "3.12"
124+
python-version: "3.13"
125125
TEST_FILES: tests/test_streamdf.py tests/test_streamspraydf.py
126126
REQUIRES_PYNBODY: false
127127
REQUIRES_ASTROPY: false
128128
REQUIRES_ASTROQUERY: false
129129
REQUIRES_NUMBA: false
130130
REQUIRES_JAX: false
131+
- os: ubuntu-latest
132+
python-version: "3.12"
133+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
134+
REQUIRES_PYNBODY: true
135+
REQUIRES_ASTROPY: true
136+
REQUIRES_ASTROQUERY: true
137+
REQUIRES_NUMBA: false
138+
REQUIRES_JAX: false
139+
- os: ubuntu-latest
140+
python-version: "3.12"
141+
TEST_FILES: tests/test_orbit.py tests/test_orbits.py -k 'not test_energy_jacobi_conservation'
142+
REQUIRES_PYNBODY: true
143+
REQUIRES_ASTROPY: true
144+
REQUIRES_ASTROQUERY: true
145+
REQUIRES_NUMBA: false
146+
REQUIRES_JAX: false
131147
- os: ubuntu-latest
132148
python-version: "3.11"
133149
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
@@ -193,23 +209,23 @@ jobs:
193209
REQUIRES_NUMBA: false
194210
REQUIRES_JAX: false
195211
- os: macos-13
196-
python-version: "3.12"
212+
python-version: "3.13"
197213
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
198214
REQUIRES_PYNBODY: true
199215
REQUIRES_ASTROPY: true
200216
REQUIRES_ASTROQUERY: true
201217
REQUIRES_NUMBA: false
202218
REQUIRES_JAX: false
203219
- os: macos-13
204-
python-version: "3.12"
220+
python-version: "3.13"
205221
TEST_FILES: tests/test_orbit.py tests/test_orbits.py -k 'not test_energy_jacobi_conservation'
206222
REQUIRES_PYNBODY: true
207223
REQUIRES_ASTROPY: true
208224
REQUIRES_ASTROQUERY: true
209225
REQUIRES_NUMBA: false
210226
REQUIRES_JAX: false
211227
env:
212-
PYTHON_COVREPORTS_VERSION: "3.12"
228+
PYTHON_COVREPORTS_VERSION: "3.13"
213229
steps:
214230
- uses: actions/checkout@v4
215231
- name: Set up Python ${{ matrix.python-version }}
@@ -260,7 +276,7 @@ jobs:
260276
- name: Install numba
261277
if: ${{ matrix.REQUIRES_NUMBA }}
262278
run: |
263-
pip install numba
279+
pip install --pre numba
264280
# numba may force install an older version of setuptools,
265281
# but it isn't actually a *runtime* requirement numba/numba#8366
266282
pip install --upgrade --force-reinstall setuptools

.github/workflows/build_windows.yml

+31-14
Original file line numberDiff line numberDiff line change
@@ -24,39 +24,39 @@ jobs:
2424
matrix:
2525
include:
2626
- os: windows-latest
27-
python-version: "3.12"
27+
python-version: "3.13"
2828
TEST_FILES: tests/test_actionAngle.py
2929
REQUIRES_PYNBODY: false
3030
REQUIRES_ASTROPY: false
3131
REQUIRES_ASTROQUERY: false
3232
REQUIRES_NUMBA: false
3333
REQUIRES_JAX: false
3434
- os: windows-latest
35-
python-version: "3.12"
35+
python-version: "3.13"
3636
TEST_FILES: tests/test_sphericaldf.py
3737
REQUIRES_PYNBODY: false
3838
REQUIRES_ASTROPY: false
3939
REQUIRES_ASTROQUERY: false
4040
REQUIRES_NUMBA: false
4141
REQUIRES_JAX: false
4242
- os: windows-latest
43-
python-version: "3.12"
43+
python-version: "3.13"
4444
TEST_FILES: tests/test_conversion.py tests/test_galpypaper.py tests/test_import.py tests/test_interp_potential.py tests/test_kuzminkutuzov.py tests/test_util.py
4545
REQUIRES_PYNBODY: false
4646
REQUIRES_ASTROPY: false
4747
REQUIRES_ASTROQUERY: false
4848
REQUIRES_NUMBA: false
4949
REQUIRES_JAX: false
5050
- os: windows-latest
51-
python-version: "3.12"
51+
python-version: "3.13"
5252
TEST_FILES: tests/test_SpiralArmsPotential.py tests/test_potential.py tests/test_scf.py
5353
REQUIRES_PYNBODY: false
5454
REQUIRES_ASTROPY: false
5555
REQUIRES_ASTROQUERY: false
5656
REQUIRES_NUMBA: false
5757
REQUIRES_JAX: false
5858
- os: windows-latest
59-
python-version: "3.12"
59+
python-version: "3.13"
6060
TEST_FILES: tests/test_quantity.py tests/test_coords.py
6161
REQUIRES_PYNBODY: false
6262
# needs to be separate for different config
@@ -65,69 +65,85 @@ jobs:
6565
REQUIRES_NUMBA: false
6666
REQUIRES_JAX: false
6767
- os: windows-latest
68-
python-version: "3.12"
68+
python-version: "3.13"
6969
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
7070
REQUIRES_PYNBODY: false
7171
REQUIRES_ASTROPY: true
7272
REQUIRES_ASTROQUERY: true
7373
REQUIRES_NUMBA: false
7474
REQUIRES_JAX: false
7575
- os: windows-latest
76-
python-version: "3.12"
76+
python-version: "3.13"
7777
TEST_FILES: tests/test_orbit.py tests/test_orbits.py -k 'not test_energy_jacobi_conservation'
7878
REQUIRES_PYNBODY: false
7979
REQUIRES_ASTROPY: true
8080
REQUIRES_ASTROQUERY: true
8181
REQUIRES_NUMBA: false
8282
REQUIRES_JAX: false
8383
- os: windows-latest
84-
python-version: "3.12"
84+
python-version: "3.13"
8585
TEST_FILES: tests/test_evolveddiskdf.py
8686
REQUIRES_PYNBODY: false
8787
REQUIRES_ASTROPY: false
8888
REQUIRES_ASTROQUERY: false
8989
REQUIRES_NUMBA: false
9090
REQUIRES_JAX: false
9191
- os: windows-latest
92-
python-version: "3.12"
92+
python-version: "3.13"
9393
TEST_FILES: tests/test_jeans.py tests/test_dynamfric.py
9494
REQUIRES_PYNBODY: false
9595
REQUIRES_ASTROPY: false
9696
REQUIRES_ASTROQUERY: false
9797
REQUIRES_NUMBA: false
9898
REQUIRES_JAX: false
9999
- os: windows-latest
100-
python-version: "3.12"
100+
python-version: "3.13"
101101
TEST_FILES: tests/test_qdf.py tests/test_pv2qdf.py tests/test_streamgapdf_impulse.py tests/test_noninertial.py
102102
REQUIRES_PYNBODY: false
103103
REQUIRES_ASTROPY: false
104104
REQUIRES_ASTROQUERY: false
105105
REQUIRES_NUMBA: true
106106
REQUIRES_JAX: false
107107
- os: windows-latest
108-
python-version: "3.12"
108+
python-version: "3.13"
109109
TEST_FILES: tests/test_streamgapdf.py
110110
REQUIRES_PYNBODY: false
111111
REQUIRES_ASTROPY: false
112112
REQUIRES_ASTROQUERY: false
113113
REQUIRES_NUMBA: false
114114
REQUIRES_JAX: false
115115
- os: windows-latest
116-
python-version: "3.12"
116+
python-version: "3.13"
117117
TEST_FILES: tests/test_diskdf.py
118118
REQUIRES_PYNBODY: false
119119
REQUIRES_ASTROPY: false
120120
REQUIRES_ASTROQUERY: false
121121
REQUIRES_NUMBA: false
122122
REQUIRES_JAX: false
123123
- os: windows-latest
124-
python-version: "3.12"
124+
python-version: "3.13"
125125
TEST_FILES: tests/test_streamdf.py tests/test_streamspraydf.py
126126
REQUIRES_PYNBODY: false
127127
REQUIRES_ASTROPY: false
128128
REQUIRES_ASTROQUERY: false
129129
REQUIRES_NUMBA: false
130130
REQUIRES_JAX: false
131+
- os: windows-latest
132+
python-version: "3.12"
133+
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
134+
REQUIRES_PYNBODY: false
135+
REQUIRES_ASTROPY: true
136+
REQUIRES_ASTROQUERY: true
137+
REQUIRES_NUMBA: false
138+
REQUIRES_JAX: false
139+
- os: windows-latest
140+
python-version: "3.12"
141+
TEST_FILES: tests/test_orbit.py tests/test_orbits.py -k 'not test_energy_jacobi_conservation'
142+
REQUIRES_PYNBODY: false
143+
REQUIRES_ASTROPY: true
144+
REQUIRES_ASTROQUERY: true
145+
REQUIRES_NUMBA: false
146+
REQUIRES_JAX: false
131147
- os: windows-latest
132148
python-version: "3.11"
133149
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
@@ -227,7 +243,8 @@ jobs:
227243
run: pip install astroquery
228244
- name: Install numba
229245
if: ${{ matrix.REQUIRES_NUMBA }}
230-
run: pip install numba
246+
run: |
247+
pip install --pre numba
231248
- name: Install JAX
232249
if: ${{ matrix.REQUIRES_JAX }}
233250
run: pip install jax jaxlib

0 commit comments

Comments
 (0)