-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (47 loc) · 1.25 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Run tests
on:
push:
branches:
- main
tags: '*'
pull_request:
jobs:
vanilla-test:
runs-on: ubuntu-latest
strategy:
matrix:
julia-version:
- '1.7'
- '1.6'
- 'nightly'
nthreads:
- '1'
- '2'
- '8'
fail-fast: false
name: Test Julia ${{ matrix.julia-version }} nthreads=${{ matrix.nthreads }}
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.julia-version }}
- uses: julia-actions/julia-runtest@v1
env:
JULIA_NUM_THREADS: ${{ matrix.nthreads }}
TEST_FUNCTION_RUNNER_JL_TIMEOUT: "1200"
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
file: ./lcov.info
flags: Pkg.test
name: codecov-umbrella
# A job that succeeds if and only if all jobs in `test` succeed.
all-success:
if: always() && github.event.pull_request
needs: vanilla-test
runs-on: ubuntu-latest
steps:
# https://github.com/tkf/merge-conclusions-action
- uses: tkf/merge-conclusions-action@v1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}