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 99555a7 commit 7092cc0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,22 @@ jobs:
- name: Install dependencies
run: |
pip install uv
.venv/bin/pip install uv
uv pip install -r requirements-test.txt maturin
shell: bash

- name: Build wheels
uses: PyO3/maturin-action@v1
with:
command: develop

- name: Run tests
shell: pwsh
run: |
if ($env:OS -eq 'Windows_NT') {
.venv\\Scripts\\Activate.ps1
pytest -n auto
} else {
if [ ${{ matrix.os }} == 'windows-latest' ]; then
.venv\\Scripts\\activate
.venv\\Scripts\\pytest -n auto
else
source .venv/bin/activate
pytest -n auto
}
fi
shell: bash

0 comments on commit 7092cc0

Please sign in to comment.