Configure nextest to run database tests serially

This commit is contained in:
Quentin Gliech
2025-01-20 09:52:16 +01:00
parent e6967210cc
commit 8a61b7a747
2 changed files with 18 additions and 6 deletions

View File

@@ -292,7 +292,7 @@ jobs:
strategy:
matrix:
partition: [1, 2]
partition: [1, 2, 3]
services:
postgres:
@@ -350,11 +350,9 @@ jobs:
env:
DATABASE_URL: postgresql://postgres:postgres@localhost/postgres
run: |
~/.cargo/bin/cargo-nextest nextest run --archive-file nextest-archive.tar.zst \
--partition count:${{ matrix.partition }}/2 \
--retries 1
# --retries is a workaround for sqlx not playing nice with nextest
# Waiting for https://github.com/launchbadge/sqlx/pull/3334
~/.cargo/bin/cargo-nextest nextest run \
--archive-file nextest-archive.tar.zst \
--partition count:${{ matrix.partition }}/3
syn2mas:
name: Check syn2mas