Skip to content

Commit

Permalink
Set GITHUB_TOKEN env in workflow and use the same test command for al…
Browse files Browse the repository at this point in the history
…l systems.
  • Loading branch information
yaph committed Oct 16, 2024
1 parent 37a6cdc commit 674d1a9
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,8 @@ jobs:
- name: Run static analysis
run: hatch fmt --linter

- name: Run tests non-Windows
if: runner.os != 'Windows'
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1
- name: Set env
run: export GITHUB_TOKEN=MY_GITHUB_TOKEN

- name: Run tests Windows
if: runner.os == 'Windows'
shell: powershell
run: |
python -c "import os; os.system('hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1')"
- name: Run tests
run: hatch test --python ${{ matrix.python-version }} --cover --randomize --parallel --retries 2 --retry-delay 1

0 comments on commit 674d1a9

Please sign in to comment.