Skip to content

Commit

Permalink
Test xdist in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
javitonino committed Jul 9, 2024
1 parent d0da060 commit 65f96dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,6 @@ jobs:
fail-fast: false
matrix:
maindb_driver: ["pg"]
shard: [0, 1, 2]

steps:
- name: Checkout the repository
Expand All @@ -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
Expand Down

0 comments on commit 65f96dd

Please sign in to comment.