From c1f7e965615d40a3a038be57c75f164669beea42 Mon Sep 17 00:00:00 2001 From: Sylvain Leclerc Date: Mon, 23 Sep 2024 15:02:27 +0200 Subject: [PATCH] ci(tests): reduce number of workers for tests (#2149) The use of as many workers as logical cores seems to cause significant increases of some monitored durations, including on Linux, which causes irrelevant CI failures. We revert to using as many workers as actual CPUs. Also, load balancing of tests is improved using worksteal, which works far better with our tests which have very different execution times (integration tests are far longer than unit tests). --------- Signed-off-by: Sylvain Leclerc --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 604f8e54d1..7a590a8214 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,7 +53,7 @@ jobs: pip install -r requirements-dev.txt - name: Test with pytest run: | - pytest --cov antarest --cov-report xml -n logical + pytest --cov antarest --cov-report xml -n auto --dist=worksteal - name: Archive code coverage results if: matrix.os == 'ubuntu-20.04' uses: actions/upload-artifact@v4