From 7ce5c6c7966031f8fcca2b352cc219cc13a5c2c6 Mon Sep 17 00:00:00 2001 From: Daniel Bok Date: Wed, 28 Feb 2024 23:48:39 +0800 Subject: [PATCH] new build process --- .github/workflows/test-build-deploy.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test-build-deploy.yml b/.github/workflows/test-build-deploy.yml index 2b36389..fa73fc3 100644 --- a/.github/workflows/test-build-deploy.yml +++ b/.github/workflows/test-build-deploy.yml @@ -169,7 +169,7 @@ jobs: - name: Test Package Installation run: | - pip install --upgrade pip + pip${{ matrix.python-version }} install --upgrade pip # finds path to the right wheel or source file to install later if [[ "${{ matrix.ext }}" == "whl" ]]; then @@ -178,19 +178,20 @@ jobs: filename="copulae-*${version}*${os}*.whl" else # Following packages are needed to install copulae from source - python -m pip install --user numpy wheel cython scipy + pip${{ matrix.python-version }} install numpy wheel cython scipy filename="copulae-*.tar.gz" fi; echo "Looking for file ${filename}" file=$(find dist -name "${filename}" -type f); - pip list - echo "Running python -m pip install --user ${file}" - python -m pip install --user ${file} + pip${{ matrix.python-version }} list + python${{ matrix.python-version }} -m pip show numpy + echo "Running pip${{ matrix.python-version }} install --user ${file}" + pip${{ matrix.python-version }} install ${file} # if we can import this, all should be gucci - python -c "import copulae" + python${{ matrix.python-version }} -c "import copulae" deploy: name: deploy packages