From ea00a482f774d685f67ca680a6b2f77befced566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Sun, 7 Apr 2024 23:42:42 +0200 Subject: [PATCH] CI: try fix missing pip step by using oldest-supported-numpy package --- .github/workflows/main.yml | 22 +++++----------------- 1 file changed, 5 insertions(+), 17 deletions(-) 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: