From 0a77da12c7f2eec934c2d512e17ab4477846d937 Mon Sep 17 00:00:00 2001 From: MasloMaslane Date: Fri, 23 Aug 2024 13:24:49 +0200 Subject: [PATCH 1/2] Run tests in parallel --- .github/workflows/Arch.yaml | 2 +- .github/workflows/Ubuntu.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Arch.yaml b/.github/workflows/Arch.yaml index cea57a4d..3128bb0e 100644 --- a/.github/workflows/Arch.yaml +++ b/.github/workflows/Arch.yaml @@ -35,4 +35,4 @@ jobs: env: PYTEST_ADDOPTS: "--color=yes" run: | - python3 -m pytest -v + python3 -m pytest -v -n auto diff --git a/.github/workflows/Ubuntu.yaml b/.github/workflows/Ubuntu.yaml index bab3026b..e0a4c6bd 100644 --- a/.github/workflows/Ubuntu.yaml +++ b/.github/workflows/Ubuntu.yaml @@ -41,4 +41,4 @@ jobs: env: PYTEST_ADDOPTS: "--color=yes" run: | - python3 -m pytest -v + python3 -m pytest -v -n auto From aef5ec743ae0b5a8928f261f891f28f5124973b9 Mon Sep 17 00:00:00 2001 From: MasloMaslane Date: Fri, 23 Aug 2024 13:44:31 +0200 Subject: [PATCH 2/2] Dont use all cores --- .github/workflows/Arch.yaml | 2 +- .github/workflows/Ubuntu.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/Arch.yaml b/.github/workflows/Arch.yaml index 3128bb0e..4ace48ff 100644 --- a/.github/workflows/Arch.yaml +++ b/.github/workflows/Arch.yaml @@ -35,4 +35,4 @@ jobs: env: PYTEST_ADDOPTS: "--color=yes" run: | - python3 -m pytest -v -n auto + python3 -m pytest -v -n $((`nproc` / 2)) diff --git a/.github/workflows/Ubuntu.yaml b/.github/workflows/Ubuntu.yaml index e0a4c6bd..f788d07d 100644 --- a/.github/workflows/Ubuntu.yaml +++ b/.github/workflows/Ubuntu.yaml @@ -41,4 +41,4 @@ jobs: env: PYTEST_ADDOPTS: "--color=yes" run: | - python3 -m pytest -v -n auto + python3 -m pytest -v -n $((`nproc` / 2))