mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 05:15:35 -06:00
Use xdist auto in pytest workflow
This commit is contained in:
2
.github/workflows/test.yaml
vendored
2
.github/workflows/test.yaml
vendored
@@ -64,7 +64,7 @@ jobs:
|
||||
run: |
|
||||
cd backend
|
||||
set -o pipefail # otherwise 'tee' will eat the exit code
|
||||
poetry run pytest --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
||||
poetry run pytest -n auto --color=yes --cov=linkpulse --cov-report=term-missing:skip-covered --junitxml=pytest.xml | tee pytest-coverage.txt
|
||||
|
||||
# pytest-coverage-comment won't error if the files are missing
|
||||
if [ ! -f ./pytest-coverage.txt ] || [ ! -f ./pytest.xml ]; then
|
||||
|
||||
Reference in New Issue
Block a user