@@ -48,18 +48,21 @@ jobs:
4848 run : |
4949 import GRAPE
5050 include(pkgdir(GRAPE, "test", "runtests.jl"))
51- - name : " Summarize coverage"
52- shell : julia --project=test {0}
53- run : |
54- using QuantumControlTestUtils
55- show_coverage()
5651 - uses : julia-actions/julia-processcoverage@v1
5752 - name : " Summarize coverage"
5853 run : julia --project=test -e 'using QuantumControlTestUtils; show_coverage();'
5954 - uses : codecov/codecov-action@v5
6055 with :
6156 files : lcov.info
6257 token : ${{ secrets.CODECOV_TOKEN }}
58+ - name : Save Julia depot cache on cancel or failure
59+ id : julia-cache-save
60+ if : cancelled() || failure()
61+ uses : actions/cache/save@v4
62+ with :
63+ path : |
64+ ${{ steps.julia-cache.outputs.cache-paths }}
65+ key : ${{ steps.julia-cache.outputs.cache-key }}
6366 docs :
6467 name : Documentation
6568 runs-on : ubuntu-latest
@@ -78,10 +81,10 @@ jobs:
7881 wget https://raw.githubusercontent.com/JuliaQuantumControl/JuliaQuantumControl/master/scripts/installorg.jl
7982 install -m 600 -D /dev/null ~/.ssh/known_hosts
8083 ssh-keyscan -H github.com > ~/.ssh/known_hosts
81- julia --project=test -e 'include("installorg.jl"); installorg(; github="develop")'
84+ julia --project=docs -e 'include("installorg.jl"); installorg(; github="develop")'
8285 # installing in develop mode enables proper "source" links in subpackage APIs
8386 - name : " Build documentation"
84- run : julia --project=test docs/make.jl
87+ run : julia --project=docs docs/make.jl
8588 env :
8689 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
8790 DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
9699 path : |
97100 README.md
98101 ./docs.zip
102+ - name : Save Julia depot cache on cancel or failure
103+ id : julia-cache-save
104+ if : cancelled() || failure()
105+ uses : actions/cache/save@v4
106+ with :
107+ path : |
108+ ${{ steps.julia-cache.outputs.cache-paths }}
109+ key : ${{ steps.julia-cache.outputs.cache-key }}
99110 codestyle :
100111 name : Codestyle
101112 runs-on : ubuntu-latest
0 commit comments