mirror of
https://github.com/Xevion/linkpulse.git
synced 2025-12-06 11:15:34 -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: |
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user