Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

Commit

Permalink
Make pytest default parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
iopapamanoglou committed Sep 23, 2024
1 parent 32aea15 commit 1ec752b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pytest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
run: poetry run ruff check --output-format=github .
#continue-on-error: true
- name: Run pytest
run: poetry run pytest -n auto
run: poetry run pytest
#- name: Upload pytest test results
# uses: actions/upload-artifact@v4
# with:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gprof2dot = "^2024.6.6"
pytest-xdist = "^3.6.1"

[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
addopts = ["--import-mode=importlib", "--numprocesses=auto"]

[tool.ruff]
line-length = 88 # Same as Black.
Expand Down

0 comments on commit 1ec752b

Please sign in to comment.