From 5972590cca2633373c61fab418cb1f3c04a244d5 Mon Sep 17 00:00:00 2001 From: mashehu Date: Thu, 8 Feb 2024 11:49:54 +0100 Subject: [PATCH] parallelize pytest --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index db5fc5117dc..1745d104713 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -376,7 +376,7 @@ jobs: python-version: "3.11" - name: Install Python dependencies - run: python -m pip install --upgrade pip pytest-workflow cryptography + run: python -m pip install --upgrade pip pytest-workflow cryptography pytest-xdist - uses: actions/setup-java@v3 with: @@ -427,7 +427,7 @@ jobs: # Test the module - name: Run pytest-workflow # only use one thread for pytest-workflow to avoid race condition on conda cache. - run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --kwdof --git-aware --color=yes + run: TMPDIR=~ PROFILE=${{ matrix.profile }} pytest --tag ${{ matrix.tags }} --symlink --kwdof --git-aware --color=yes -n 4 - name: Output log on failure if: failure()