From a64f2c930eafdf3aa6be4ff96fae0b82864707dd Mon Sep 17 00:00:00 2001 From: darrylong Date: Tue, 25 Jun 2024 22:01:53 +0800 Subject: [PATCH] update dependency installing sequence --- .github/workflows/python-package.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 6e8c01bb..f32fda53 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -63,14 +63,15 @@ jobs: run: python${{ matrix.versions.python }} -m pip install wheel setuptools pip --upgrade - name: Install other dependencies + run: pip install Cython pytest pytest-cov flake8 + + - name: Install pinned dependencies - numpy ${{ matrix.versions.numpy }}, scipy ${{ matrix.versions.scipy }} run: | - pip install numpy scipy Cython pytest pytest-cov flake8 + pip uninstall numpy scipy + pip install numpy==${{ matrix.versions.numpy }} scipy==${{ matrix.versions.scipy }} python${{ matrix.versions.python }} setup.py build_ext -j${{ steps.cpu-cores.outputs.count }} pip install -e .[tests] - - name: Install pinned dependencies - numpy ${{ matrix.versions.numpy }}, scipy ${{ matrix.versions.scipy }} - run: pip install numpy==${{ matrix.versions.numpy }} scipy==${{ matrix.versions.scipy }} - - name: Display numpy version run: python${{ matrix.versions.python }} -c "import numpy; print(numpy.__version__)"