From 126b5a51f8b5e7290245a4023e46e98bc378cc1d Mon Sep 17 00:00:00 2001 From: Tim Besard Date: Mon, 8 Feb 2021 09:21:35 +0100 Subject: [PATCH] Run tests with appropriate number of threads. --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e7d891f3..90c45bb3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,7 @@ jobs: matrix: version: - '1.5' + - '1.6-nightly' - 'nightly' os: - ubuntu-latest @@ -29,6 +30,10 @@ jobs: with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} + - name: Retrieve system info + run: | + julia -e "println(\"::set-output name=cpu_threads::\", Sys.CPU_THREADS)" + id: sysinfo - uses: actions/cache@v1 env: cache-name: cache-artifacts @@ -44,6 +49,8 @@ jobs: git config --global user.name Tester git config --global user.email te@st.er - uses: julia-actions/julia-runtest@latest + env: + JULIA_NUM_THREADS: ${{ steps.sysinfo.outputs.cpu_threads }} continue-on-error: ${{ matrix.version == 'nightly' }} - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v1