Skip to content

Commit

Permalink
tweak configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
weaverba137 committed Jan 7, 2025
1 parent 7b8d107 commit bc40a77
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ jobs:
python-version: '3.10'
numpy-version: '<3'
astropy-version: '<7.0'
- os: ubuntu-latest
python-version: '3.10'
numpy-version: '<1.23'
astropy-version: '<7.1'
- os: ubuntu-latest
python-version: '3.10'
numpy-version: '<1.24'
Expand Down Expand Up @@ -120,8 +124,8 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade "numpy${{ matrix.numpy-version }}"
python -m pip install --upgrade "astropy${{ matrix.astropy-version }}"
python -m pip install --upgrade --upgrade-strategy only-if-needed "numpy${{ matrix.numpy-version }}"
python -m pip install --upgrade --upgrade-strategy only-if-needed"astropy${{ matrix.astropy-version }}"
python -m pip install --editable .[test]
- name: Run the test
run: pytest
Expand All @@ -134,7 +138,8 @@ jobs:
matrix:
os: [ubuntu-latest]
python-version: ['3.10']
# astropy-version: ['<5.1'] not used at this time.
numpy-version: ['<1.23']
astropy-version: ['<6.1']

steps:
- name: Checkout code
Expand All @@ -148,6 +153,8 @@ jobs:
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade --upgrade-strategy only-if-needed "numpy${{ matrix.numpy-version }}"
python -m pip install --upgrade --upgrade-strategy only-if-needed"astropy${{ matrix.astropy-version }}"
python -m pip install --editable .[coverage]
- name: Run the test with coverage
run: pytest --cov
Expand Down

0 comments on commit bc40a77

Please sign in to comment.