From 5c27c3449036a0cc0759ed19a0235a74cb8b75c5 Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 22 Jan 2024 09:20:07 +0100 Subject: [PATCH] GHA: Use all available cores for compilation (#2271) https://github.blog/2024-01-17-github-hosted-runners-double-the-power-for-open-source/ --- .github/workflows/test_benchmark_collection_models.yml | 4 ++-- .github/workflows/test_performance.yml | 2 +- .github/workflows/test_petab_test_suite.yml | 2 +- .github/workflows/test_sbml_semantic_test_suite.yml | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_benchmark_collection_models.yml b/.github/workflows/test_benchmark_collection_models.yml index bf9509e5ce..3bf4cc3c1e 100644 --- a/.github/workflows/test_benchmark_collection_models.yml +++ b/.github/workflows/test_benchmark_collection_models.yml @@ -49,7 +49,7 @@ jobs: - name: Install AMICI sdist run: | pip3 install --user petab[vis] && \ - AMICI_PARALLEL_COMPILE=2 pip3 install -v --user \ + AMICI_PARALLEL_COMPILE="" pip3 install -v --user \ $(ls -t python/sdist/dist/amici-*.tar.gz | head -1)[petab,test,vis] # retrieve test models @@ -57,7 +57,7 @@ jobs: run: | git clone --depth 1 https://github.com/benchmarking-initiative/Benchmark-Models-PEtab.git \ && export BENCHMARK_COLLECTION="$(pwd)/Benchmark-Models-PEtab/Benchmark-Models/" \ - && AMICI_PARALLEL_COMPILE=2 tests/benchmark-models/test_benchmark_collection.sh + && AMICI_PARALLEL_COMPILE="" tests/benchmark-models/test_benchmark_collection.sh # run gradient checks - name: Run Gradient Checks diff --git a/.github/workflows/test_performance.yml b/.github/workflows/test_performance.yml index de9dd686d9..c306e0333a 100644 --- a/.github/workflows/test_performance.yml +++ b/.github/workflows/test_performance.yml @@ -51,7 +51,7 @@ jobs: - name: Install AMICI sdist run: | - AMICI_PARALLEL_COMPILE=2 check_time.sh \ + AMICI_PARALLEL_COMPILE="" check_time.sh \ install_sdist pip3 install -v --user \ $(ls -t python/sdist/dist/amici-*.tar.gz | head -1) diff --git a/.github/workflows/test_petab_test_suite.yml b/.github/workflows/test_petab_test_suite.yml index 9b48f21d95..a4791536e9 100644 --- a/.github/workflows/test_petab_test_suite.yml +++ b/.github/workflows/test_petab_test_suite.yml @@ -78,7 +78,7 @@ jobs: - name: Run PEtab test suite run: | source ./build/venv/bin/activate \ - && AMICI_PARALLEL_COMPILE=2 pytest -v \ + && AMICI_PARALLEL_COMPILE="" pytest -v \ --cov-report=xml:coverage.xml \ --cov-append \ --cov=amici \ diff --git a/.github/workflows/test_sbml_semantic_test_suite.yml b/.github/workflows/test_sbml_semantic_test_suite.yml index 2af34d3762..ee123a233b 100644 --- a/.github/workflows/test_sbml_semantic_test_suite.yml +++ b/.github/workflows/test_sbml_semantic_test_suite.yml @@ -44,8 +44,8 @@ jobs: - name: Install apt dependencies uses: ./.github/actions/install-apt-dependencies - - run: AMICI_PARALLEL_COMPILE=2 ./scripts/installAmiciSource.sh - - run: AMICI_PARALLEL_COMPILE=2 ./scripts/run-SBMLTestsuite.sh ${{ matrix.cases }} + - run: AMICI_PARALLEL_COMPILE="" ./scripts/installAmiciSource.sh + - run: AMICI_PARALLEL_COMPILE="" ./scripts/run-SBMLTestsuite.sh ${{ matrix.cases }} - name: "Upload artifact: SBML semantic test suite results" uses: actions/upload-artifact@v3