diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index c18045c18f1..dd09b30d6cd 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -36,6 +36,7 @@ jobs: uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + cache: pip - name: Install non-Python dependencies run: | @@ -49,7 +50,7 @@ jobs: python -m pip install --upgrade pip pip install -r .github/workflows/python_requirements.txt pip install -r .github/workflows/optional_requirements.txt - pip install pytest pytest-timeout pytest-github-actions-annotate-failures + pip install pytest pytest-timeout pytest-github-actions-annotate-failures pytest-xdist - name: Create installation directory run: | @@ -73,7 +74,7 @@ jobs: run: | export PYTHONPATH=`grass --config python_path`:$PYTHONPATH export LD_LIBRARY_PATH=$HOME/install/grass84/lib:$LD_LIBRARY_PATH - pytest . + pytest --numprocesses auto . - name: Print installed versions if: always()