Use xdist auto in pytest workflow

This commit is contained in:
2024-11-09 22:47:17 -06:00
parent ee4f3c64d9
commit fa80bd0649

View File

@@ -64,7 +64,7 @@ jobs:
run: | run: |
cd backend cd backend
set -o pipefail # otherwise 'tee' will eat the exit code 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 # pytest-coverage-comment won't error if the files are missing
if [ ! -f ./pytest-coverage.txt ] || [ ! -f ./pytest.xml ]; then if [ ! -f ./pytest-coverage.txt ] || [ ! -f ./pytest.xml ]; then