@@ -24,33 +24,36 @@ jobs:
24
24
with :
25
25
version : ${{ matrix.version }}
26
26
arch : ${{ matrix.arch }}
27
- - uses : actions/cache@v1
28
- env :
29
- cache-name : cache-artifacts
30
- with :
31
- path : ~/.julia/artifacts
32
- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
33
- restore-keys : |
34
- ${{ runner.os }}-test-${{ env.cache-name }}-
35
- ${{ runner.os }}-test-
36
- ${{ runner.os }}-
27
+ - uses : julia-actions/cache@v1
37
28
- run : |
38
29
# Instantiate Pkg
39
30
wget https://raw.githubusercontent.com/JuliaQuantumControl/JuliaQuantumControl/master/scripts/installorg.jl
40
31
julia --project=test installorg.jl
41
32
- run : |
42
33
# Run tests
43
34
julia --project=test --color=auto --startup-file=yes --code-coverage="user" --depwarn="yes" --check-bounds="yes" -e 'include("test/runtests.jl")'
35
+ - run : |
36
+ # Run downstream "Krotov" tests
37
+ julia --project=test -e '
38
+ using Pkg
39
+ Pkg.test("Krotov", coverage=true)'
40
+ - run : |
41
+ # Run downstream "GRAPE" tests
42
+ julia --project=test -e '
43
+ using Pkg
44
+ Pkg.test("GRAPE", coverage=true)'
44
45
- uses : julia-actions/julia-processcoverage@v1
45
46
- run : |
46
47
# Summarize coverage
47
48
julia --project=test -e 'using QuantumControlTestUtils; show_coverage();'
48
- - uses : codecov/codecov-action@v1
49
+ - uses : codecov/codecov-action@v2
49
50
with :
50
- file : lcov.info
51
+ files : lcov.info
51
52
docs :
52
53
name : Documentation
53
54
runs-on : ubuntu-latest
55
+ permissions :
56
+ contents : write
54
57
steps :
55
58
- uses : actions/checkout@v2
56
59
- uses : julia-actions/setup-julia@v1
67
70
- run : cp test/*.toml docs/ # Prepare DrWatson
68
71
- run : |
69
72
# Run doctests
70
- julia --project=docs -e '
73
+ julia --project=test -e '
71
74
using Documenter: DocMeta, doctest
72
75
using QuantumControl
73
76
DocMeta.setdocmeta!(QuantumControl, :DocTestSetup, :(using QuantumControl); recursive=true)
0 commit comments