Skip to content

Commit

Permalink
Run astroquery-based tests in both orbit jobs to hit multiple astroqu…
Browse files Browse the repository at this point in the history
…ery versions
  • Loading branch information
jobovy committed Dec 10, 2024
1 parent 82c2109 commit a6d47ec
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:
REQUIRES_JAX: false
- os: ubuntu-latest
python-version: "3.12"
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
REQUIRES_JAX: false
- os: ubuntu-latest
python-version: "3.11"
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand All @@ -146,7 +146,7 @@ jobs:
REQUIRES_JAX: false
- os: ubuntu-latest
python-version: "3.10"
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand All @@ -162,7 +162,7 @@ jobs:
REQUIRES_JAX: false
- os: ubuntu-latest
python-version: 3.9
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand All @@ -178,7 +178,7 @@ jobs:
REQUIRES_JAX: false
- os: ubuntu-latest
python-version: 3.8
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand All @@ -194,7 +194,7 @@ jobs:
REQUIRES_JAX: false
- os: macos-13
python-version: "3.12"
TEST_FILES: tests/test_orbit.py -k test_energy_jacobi_conservation
TEST_FILES: tests/test_orbit.py -k 'test_energy_jacobi_conservation or from_name'
REQUIRES_PYNBODY: true
REQUIRES_ASTROPY: true
REQUIRES_ASTROQUERY: true
Expand Down Expand Up @@ -252,7 +252,7 @@ jobs:
if: ${{ matrix.REQUIRES_ASTROPY }}
run: pip install astropy pyerfa
- name: Install astroquery (latest release)
if: ${{ matrix.REQUIRES_ASTROQUERY && endsWith(matrix.TEST_FILES,'-k test_energy_jacobi_conservation') }}
if: ${{ matrix.REQUIRES_ASTROQUERY && contains(matrix.TEST_FILES,'test_energy_jacobi_conservation or from_name') }}
run: pip install astroquery
- name: Install astroquery (bleeding edge)
if: ${{ matrix.REQUIRES_ASTROQUERY && contains(matrix.TEST_FILES,'not test_energy_jacobi_conservation') }}
Expand Down

0 comments on commit a6d47ec

Please sign in to comment.