diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 56d78b43..a4a1aae7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: @@ -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: