Skip to content

Commit f7f2d47

Browse files
authored
Implement multithreaded tests, reduce variety of tests on Julia versions (#4)
1 parent aded5c8 commit f7f2d47

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

.github/workflows/CI.yaml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,26 @@ jobs:
1616

1717
# taken from example on julia-actions/runtest@v1
1818
test:
19-
runs-on: ${{ matrix.os }}
2019
strategy:
2120
matrix:
22-
julia-version: ['1','1.6']
21+
julia-num-threads: [1,2,4,8]
22+
julia-version: ['1.8']
2323
julia-arch: [x64]
2424
os: [ubuntu-latest]
25+
#1, 2, 4, 8 thread test
26+
name: Threads - ${{matrix.julia-num-threads}}
27+
env:
28+
JULIA_NUM_THREADS: ${{ matrix.julia-num-threads }}
29+
runs-on: ${{ matrix.os }}
2530

2631
steps:
2732
- uses: actions/checkout@v2
2833
- uses: julia-actions/setup-julia@v1
2934
with:
3035
version: ${{ matrix.julia-version }}
3136
arch: ${{ matrix.julia-arch }}
37+
- name: "Confirm Number of Threads"
38+
run: julia -e 'println(Threads.nthreads())'
3239
- uses: julia-actions/julia-buildpkg@v1
3340
- uses: julia-actions/julia-runtest@v1
3441
with:

0 commit comments

Comments
 (0)