1
1
name : CI
2
2
on :
3
+ pull_request :
4
+ branches :
5
+ - master
3
6
push :
4
7
branches :
5
- - main
8
+ - master
6
9
tags : ' *'
7
- pull_request :
8
- concurrency :
9
- # Skip intermediate builds: always.
10
- # Cancel intermediate builds: only if it is a pull request build.
11
- group : ${{ github.workflow }}-${{ github.ref }}
12
- cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
13
10
jobs :
14
11
test :
15
12
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -18,26 +15,36 @@ jobs:
18
15
fail-fast : false
19
16
matrix :
20
17
version :
21
- - ' 1.0 '
22
- - ' 1.7 '
18
+ - ' 1.7 ' # lowest supported version
19
+ - ' 1' # last released version
23
20
os :
24
21
- ubuntu-latest
22
+ - macos-latest
23
+ # - windows-latest
25
24
arch :
26
25
- x64
27
- - x86
28
26
steps :
29
27
- uses : actions/checkout@v2
30
28
- uses : julia-actions/setup-julia@v1
31
29
with :
32
30
version : ${{ matrix.version }}
33
31
arch : ${{ matrix.arch }}
34
- - uses : julia-actions/cache@v1
32
+ - uses : actions/cache@v1
33
+ env :
34
+ cache-name : cache-artifacts
35
+ with :
36
+ path : ~/.julia/artifacts
37
+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
38
+ restore-keys : |
39
+ ${{ runner.os }}-test-${{ env.cache-name }}-
40
+ ${{ runner.os }}-test-
41
+ ${{ runner.os }}-
35
42
- uses : julia-actions/julia-buildpkg@v1
36
43
- uses : julia-actions/julia-runtest@v1
37
44
- uses : julia-actions/julia-processcoverage@v1
38
- - uses : codecov/codecov-action@v2
45
+ - uses : codecov/codecov-action@v1
39
46
with :
40
- files : lcov.info
47
+ file : lcov.info
41
48
docs :
42
49
name : Documentation
43
50
runs-on : ubuntu-latest
@@ -46,14 +53,17 @@ jobs:
46
53
- uses : julia-actions/setup-julia@v1
47
54
with :
48
55
version : ' 1'
49
- - uses : julia-actions/julia-buildpkg@v1
50
- - uses : julia-actions/julia-docdeploy@v1
51
- env :
52
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
53
- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
54
56
- run : |
55
57
julia --project=docs -e '
56
- using Documenter: DocMeta, doctest
58
+ using Pkg
59
+ Pkg.develop(PackageSpec(path=pwd()))
60
+ Pkg.instantiate()'
61
+ - run : |
62
+ julia --project=docs -e '
63
+ using Documenter: doctest
57
64
using SymPyCall
58
- DocMeta.setdocmeta!(SymPyCall, :DocTestSetup, :(using SymPyCall); recursive=true)
59
65
doctest(SymPyCall)'
66
+ - run : julia --project=docs docs/make.jl
67
+ env :
68
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
69
+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments