File tree Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Expand file tree Collapse file tree 1 file changed +68
-0
lines changed Original file line number Diff line number Diff line change 1+ name : CI
2+ on :
3+ pull_request :
4+ branches :
5+ - master
6+ push :
7+ branches :
8+ - master
9+ tags : ' *'
10+ jobs :
11+ test :
12+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
13+ runs-on : ${{ matrix.os }}
14+ strategy :
15+ fail-fast : false
16+ matrix :
17+ version :
18+ - ' 1.0'
19+ - ' 1'
20+ - ' nightly'
21+ os :
22+ - ubuntu-latest
23+ arch :
24+ - x64
25+ steps :
26+ - uses : actions/checkout@v2
27+ - uses : julia-actions/setup-julia@v1
28+ with :
29+ version : ${{ matrix.version }}
30+ arch : ${{ matrix.arch }}
31+ - uses : actions/cache@v1
32+ env :
33+ cache-name : cache-artifacts
34+ with :
35+ path : ~/.julia/artifacts
36+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
37+ restore-keys : |
38+ ${{ runner.os }}-test-${{ env.cache-name }}-
39+ ${{ runner.os }}-test-
40+ ${{ runner.os }}-
41+ - uses : julia-actions/julia-buildpkg@v1
42+ - uses : julia-actions/julia-runtest@v1
43+ - uses : julia-actions/julia-processcoverage@v1
44+ - uses : codecov/codecov-action@v1
45+ with :
46+ file : lcov.info
47+ docs :
48+ name : Documentation
49+ runs-on : ubuntu-latest
50+ steps :
51+ - uses : actions/checkout@v2
52+ - uses : julia-actions/setup-julia@v1
53+ with :
54+ version : ' 1'
55+ - run : |
56+ julia --project=docs -e '
57+ using Pkg
58+ Pkg.develop(PackageSpec(path=pwd()))
59+ Pkg.instantiate()'
60+ - run : |
61+ julia --project=docs -e '
62+ using Documenter: doctest
63+ using ForwardDiff
64+ doctest(ForwardDiff)'
65+ - run : julia --project=docs docs/make.jl
66+ env :
67+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
68+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
You can’t perform that action at this time.
0 commit comments