Skip to content

Commit 1aa05df

Browse files
committed
Run astroquery-based tests in both orbit jobs to hit multiple astroquery versions
1 parent 587a713 commit 1aa05df

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/build.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ jobs:
6666
REQUIRES_JAX: false
6767
- os: ubuntu-latest
6868
python-version: "3.12"
69-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
69+
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
@@ -130,7 +130,7 @@ jobs:
130130
REQUIRES_JAX: false
131131
- os: ubuntu-latest
132132
python-version: "3.11"
133-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
133+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
134134
REQUIRES_PYNBODY: true
135135
REQUIRES_ASTROPY: true
136136
REQUIRES_ASTROQUERY: true
@@ -146,7 +146,7 @@ jobs:
146146
REQUIRES_JAX: false
147147
- os: ubuntu-latest
148148
python-version: "3.10"
149-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
149+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
150150
REQUIRES_PYNBODY: true
151151
REQUIRES_ASTROPY: true
152152
REQUIRES_ASTROQUERY: true
@@ -162,7 +162,7 @@ jobs:
162162
REQUIRES_JAX: false
163163
- os: ubuntu-latest
164164
python-version: 3.9
165-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
165+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
166166
REQUIRES_PYNBODY: true
167167
REQUIRES_ASTROPY: true
168168
REQUIRES_ASTROQUERY: true
@@ -178,7 +178,7 @@ jobs:
178178
REQUIRES_JAX: false
179179
- os: ubuntu-latest
180180
python-version: 3.8
181-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
181+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
182182
REQUIRES_PYNBODY: true
183183
REQUIRES_ASTROPY: true
184184
REQUIRES_ASTROQUERY: true
@@ -194,7 +194,7 @@ jobs:
194194
REQUIRES_JAX: false
195195
- os: macos-13
196196
python-version: "3.12"
197-
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
197+
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
198198
REQUIRES_PYNBODY: true
199199
REQUIRES_ASTROPY: true
200200
REQUIRES_ASTROQUERY: true
@@ -252,7 +252,7 @@ jobs:
252252
if: ${{ matrix.REQUIRES_ASTROPY }}
253253
run: pip install astropy pyerfa
254254
- name: Install astroquery (latest release)
255-
if: ${{ matrix.REQUIRES_ASTROQUERY && endsWith(matrix.TEST_FILES,'-k test_energy_jacobi_conservation') }}
255+
if: ${{ matrix.REQUIRES_ASTROQUERY && contains(matrix.TEST_FILES,'test_energy_jacobi_conservation or from_name') }}
256256
run: pip install astroquery
257257
- name: Install astroquery (bleeding edge)
258258
if: ${{ matrix.REQUIRES_ASTROQUERY && contains(matrix.TEST_FILES,'not test_energy_jacobi_conservation') }}

0 commit comments

Comments
 (0)