Skip to content

Commit

Permalink
Add pytest-xdist and use in "pytest" CI workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
khaeru committed Jan 9, 2024
1 parent fd21c96 commit 1db4b84
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/pytest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,13 @@ jobs:
shell: Rscript {0}

- name: Run test suite using pytest
run: pytest ixmp -m "not performance" --verbose -rA --cov-report=xml --color=yes
run: |
pytest ixmp \
-m "not performance" \
--color=yes -rA --verbose \
--cov-report=xml \
--numprocesses=auto
shell: bash

- name: Upload test coverage to Codecov.io
uses: codecov/codecov-action@v3
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ tests = [
"pytest-benchmark",
"pytest-cov",
"pytest-rerunfailures",
"pytest-xdist",
]

[project.scripts]
Expand Down

0 comments on commit 1db4b84

Please sign in to comment.