Skip to content

Commit

Permalink
Run tests in parallel in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
youtux committed Nov 5, 2022
1 parent ef05a54 commit d9c66bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Test with tox
run: |
coverage erase
tox
tox --parallel
coverage combine
coverage xml
- uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ envlist = py{37,38,39,310,311}-pytest{62,70,71,72,latest}-coverage,
skip_missing_interpreters = true

[testenv]
parallel_show_output = true
setenv =
coverage: _PYTEST_CMD=coverage run -m pytest
xdist: _PYTEST_MORE_ARGS=-n3 -rfsxX
Expand Down

0 comments on commit d9c66bd

Please sign in to comment.