From dbdb4077f8aad33bf2cb6a1522d1d967988aeeaa Mon Sep 17 00:00:00 2001 From: Sylvain Leclerc Date: Thu, 19 Sep 2024 11:20:33 +0200 Subject: [PATCH 1/2] ci(tests): reduce number of workers for tests 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. 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..91523a511d 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 - name: Archive code coverage results if: matrix.os == 'ubuntu-20.04' uses: actions/upload-artifact@v4 From a8a49f0499d336a6bec0de1eaadb3ba2b45fe05e Mon Sep 17 00:00:00 2001 From: Sylvain Leclerc Date: Thu, 19 Sep 2024 15:32:40 +0200 Subject: [PATCH 2/2] ci(tests): improve load balancing of 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 91523a511d..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 auto + 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