From 65f96dda83a7dd8daa9b1a516ad889c13857e7d9 Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Tue, 9 Jul 2024 17:00:51 +0200 Subject: [PATCH] Test xdist in CI --- .github/workflows/ci.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 090523425c..cdcb08e7da 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -184,7 +184,6 @@ jobs: fail-fast: false matrix: maindb_driver: ["pg"] - shard: [0, 1, 2] steps: - name: Checkout the repository @@ -211,7 +210,7 @@ jobs: max_attempts: 2 retry_on: error timeout_minutes: 10 - command: source .venv/bin/activate && make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3" + command: source .venv/bin/activate && make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 -n 4" || make -C nucliadb test-cov-nucliadb pytest_extra_flags="--shard-id=${{ matrix.shard }} --num-shards=3 --lf" - name: Upload coverage to Codecov uses: codecov/codecov-action@v3