Skip to content

Commit

Permalink
ci: update test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthewMckee4 committed Aug 10, 2024
1 parent 448d478 commit 71296c1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand All @@ -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

0 comments on commit 71296c1

Please sign in to comment.