From bb84a67cabcfcb2d679969d2b361dfb1b3b5ec44 Mon Sep 17 00:00:00 2001 From: messense Date: Tue, 26 Mar 2024 11:26:07 +0800 Subject: [PATCH] Use virtualenv in musllinux tests --- .github/workflows/CI.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a1a39ed..65ced0a 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -168,9 +168,11 @@ jobs: image: alpine:latest options: -v ${{ github.workspace }}:/io -w /io run: | - apk add py3-pip - pip3 install -U pip pytest - pip3 install nh3 --no-index --find-links /io/dist/ --force-reinstall + apk add py3-virtualenv + python3 -m virtualenv .venv + source .venv/bin/activate + pip install -U pip pytest + pip install nh3 --no-index --find-links /io/dist/ --force-reinstall cd tests && python3 -m pytest - name: Upload wheels uses: actions/upload-artifact@v3 @@ -206,10 +208,12 @@ jobs: distro: alpine_latest githubToken: ${{ github.token }} install: | - apk add py3-pip - pip3 install -U pip pytest + apk add py3-virtualenv run: | - pip3 install nh3 --no-index --find-links dist/ --force-reinstall + python3 -m virtualenv .venv + source .venv/bin/activate + pip install pytest + pip install nh3 --no-index --find-links dist/ --force-reinstall cd tests && python3 -m pytest - name: Upload wheels uses: actions/upload-artifact@v3