1
- name : Unit Tests
2
-
3
- # Controls when the action will run. Triggers the workflow on push or pull request
4
- # events but only for the master branch
5
- on :
6
- pull_request :
1
+ name : Unit Tests
2
+ on :
7
3
push :
4
+ branches : [master]
5
+ tags : ["*"]
6
+ pull_request :
8
7
workflow_dispatch :
9
-
10
-
8
+ permissions :
9
+ actions : write
10
+ contents : read
11
11
env :
12
12
DATADEPS_ALWAYS_ACCEPT : 1
13
13
JIVE_PROCS : 1
14
-
15
14
jobs :
16
- build :
17
- runs-on : ubuntu-20.04
18
-
15
+ test :
16
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17
+ runs-on : ${{ matrix.os }}
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ version :
22
+ - ' 1.6'
23
+ - ' 1'
24
+ - ' nightly'
25
+ os :
26
+ - ubuntu-latest
27
+ arch :
28
+ - x64
19
29
steps :
20
-
21
- - uses : actions/checkout@v2
22
- - uses : julia-actions/setup-julia@latest
30
+ - uses : actions/checkout@v4
31
+ - uses : julia-actions/setup-julia@v2
23
32
with :
24
- version : 1.7
25
-
26
- # Runs a single command using the runners shell
27
- - name : Unit Tests
28
- run : |
29
- julia --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
30
-
31
- - name : Codecov Upload
32
- run : |
33
- julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'
34
-
33
+ version : ${{ matrix.version }}
34
+ arch : ${{ matrix.arch }}
35
+ - uses : julia-actions/cache@v1
36
+ - uses : julia-actions/julia-buildpkg@v1
37
+ - uses : julia-actions/julia-runtest@v1
38
+ - uses : julia-actions/julia-processcoverage@v1
39
+ - uses : codecov/codecov-action@v2
40
+ with :
41
+ file : lcov.info
42
+ docs :
43
+ name : Documentation
44
+ runs-on : ubuntu-latest
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ - uses : julia-actions/julia-buildpkg@latest
48
+ - run : |
49
+ sudo apt-get -qq update
50
+ sudo apt install -y pdf2svg texlive-latex-base texlive-binaries texlive-pictures texlive-latex-extra texlive-luatex
51
+ luatex -v
52
+ pdflatex -v
53
+ - uses : julia-actions/julia-docdeploy@latest
54
+ env :
55
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
56
+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments