Skip to content

Commit 126b5a5

Browse files
committed
Run tests with appropriate number of threads.
1 parent 1f23c0d commit 126b5a5

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/ci.yml

+7
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ jobs:
1616
matrix:
1717
version:
1818
- '1.5'
19+
- '1.6-nightly'
1920
- 'nightly'
2021
os:
2122
- ubuntu-latest
@@ -29,6 +30,10 @@ jobs:
2930
with:
3031
version: ${{ matrix.version }}
3132
arch: ${{ matrix.arch }}
33+
- name: Retrieve system info
34+
run: |
35+
julia -e "println(\"::set-output name=cpu_threads::\", Sys.CPU_THREADS)"
36+
id: sysinfo
3237
- uses: actions/cache@v1
3338
env:
3439
cache-name: cache-artifacts
@@ -44,6 +49,8 @@ jobs:
4449
git config --global user.name Tester
4550
git config --global user.email [email protected]
4651
- uses: julia-actions/julia-runtest@latest
52+
env:
53+
JULIA_NUM_THREADS: ${{ steps.sysinfo.outputs.cpu_threads }}
4754
continue-on-error: ${{ matrix.version == 'nightly' }}
4855
- uses: julia-actions/julia-processcoverage@v1
4956
- uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)