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