11name : CI
22on :
3- - push
4- - pull_request
3+ push :
4+ branches :
5+ - master
6+ 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/') }}
513jobs :
614 test :
715 name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -27,39 +35,33 @@ jobs:
2735 with :
2836 version : ${{ matrix.version }}
2937 arch : ${{ matrix.arch }}
30- - uses : actions/cache@v1
31- env :
32- cache-name : cache-artifacts
33- with :
34- path : ~/.julia/artifacts
35- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
36- restore-keys : |
37- ${{ runner.os }}-test-${{ env.cache-name }}-
38- ${{ runner.os }}-test-
39- ${{ runner.os }}-
38+ - uses : julia-actions/cache@v1
4039 - uses : julia-actions/julia-buildpkg@v1
4140 - uses : julia-actions/julia-runtest@v1
4241 - uses : julia-actions/julia-processcoverage@v1
43- - uses : codecov/codecov-action@v1
42+ - uses : codecov/codecov-action@v2
4443 with :
45- file : lcov.info
44+ files : lcov.info
4645 docs :
4746 name : Documentation
4847 runs-on : ubuntu-latest
48+ permissions :
49+ contents : write
4950 steps :
5051 - uses : actions/checkout@v2
5152 - uses : julia-actions/setup-julia@v1
5253 with :
53- version : ' 1.6'
54+ version : ' 1'
55+ - uses : julia-actions/julia-buildpkg@v1
5456 - run : |
5557 julia --project=docs -e '
5658 using Pkg
57- pkg"add PyCall PyPlot https://github.com/jagot/Jagot.jl.git https://github.com/jagot/PyPlotRecipes.jl.git Colors LinearAlgebra IntervalSets Statistics Random ArnoldiMethod"
58- Pkg.develop(PackageSpec(path=pwd()))
59- Pkg.instantiate() '
59+ Pkg.instantiate()
60+ pkg"add https://github.com/jagot/Jagot.jl.git https://github.com/jagot/PyPlotRecipes.jl.git"
61+ pkg"build PyPlot" '
6062 env:
6163 PYTHON: ""
62- - run : julia --project=docs docs/make.jl
64+ - uses : julia-actions/julia-docdeploy@v1
6365 env :
6466 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
6567 DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
7072 - uses : actions/checkout@v2
7173 - uses : julia-actions/setup-julia@v1
7274 with :
73- version : ' 1.6 '
75+ version : ' 1'
7476 - run : |
7577 julia --project=docs -e '
7678 using Pkg
0 commit comments