From 71296c146caf71b23f9449f92a1217ec7ef600b5 Mon Sep 17 00:00:00 2001 From: Matthew McKee Date: Sat, 10 Aug 2024 10:31:34 +0100 Subject: [PATCH] ci: update test workflow --- .github/workflows/test-python.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-python.yml b/.github/workflows/test-python.yml index be82f24..463c208 100644 --- a/.github/workflows/test-python.yml +++ b/.github/workflows/test-python.yml @@ -26,8 +26,6 @@ jobs: - name: Create virtual environment run: | python -m venv .venv - echo "$GITHUB_WORKSPACE/.venv/$BIN" >> $GITHUB_PATH - echo "VIRTUAL_ENV=$GITHUB_WORKSPACE/.venv" >> $GITHUB_ENV - name: Install dependencies run: | @@ -40,5 +38,10 @@ jobs: command: develop - name: Run tests + shell: bash run: | - pytest -n auto + if [ '${{ matrix.os }}' == 'windows-latest' ]; then + .venv\\Scripts\\activate && pytest -n auto + else + source .venv/bin/activate && pytest -n auto + fi