Skip to content

Commit

Permalink
CI: try fix missing pip step by using oldest-supported-numpy package
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Apr 7, 2024
1 parent 5f37aee commit ea00a48
Showing 1 changed file with 5 additions and 17 deletions.
22 changes: 5 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,14 +86,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
# https://github.com/scipy/oldest-supported-numpy/blob/main/setup.cfg
ver:
- {py: '3.8', np: '==1.19.3' }
- {py: '3.9', np: '==1.19.3'}
- {py: '3.10', np: '==1.21.6'}
- {py: '3.11', np: '==1.23.2'}
- {py: '3.12', np: '==1.26.2'}
- {py: '3.12', np: '>=2.0.0rc1'}
ver: [{py: '3.8', np: '1' }, {py: '3.9', np: '1'}, {py: '3.10', np: '1'}, {py: '3.11', np: '1'}, {py: '3.12', np: '1'}, {py: '3.12', np: '2'}]
steps:
- uses: actions/checkout@v2
with:
Expand All @@ -104,20 +97,15 @@ jobs:
with:
python-version: ${{ matrix.ver.py }}

- name: Update pip
run: |
python -m pip install --upgrade pip
- name: Install dependencies
env:
NP_VER: ${{ matrix.ver.np }}
run: |
python -m pip install build coveralls>=3.0.0 numpy${NP_VER}
python -m pip install --upgrade pip
pip install build coveralls>=3.0.0 oldest-supported-numpy
- name: bleeding edge
if: matrix.ver.np == '>=2.0.0rc1'
if: matrix.ver.np == '2'
run: |
python -m pip install git+https://github.com/dfm/emcee.git
python -m pip install "numpy>=2.0.0rc1" git+https://github.com/dfm/emcee.git
- name: Install GSTools
env:
Expand Down

0 comments on commit ea00a48

Please sign in to comment.