1
+ name : CI
2
+ on :
3
+ - push
4
+ - pull_request
5
+ jobs :
6
+ test :
7
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
8
+ runs-on : ${{ matrix.os }}
9
+ strategy :
10
+ fail-fast : false
11
+ matrix :
12
+ version :
13
+ - ' 1.3'
14
+ - ' 1.6'
15
+ # - 'nightly'
16
+ os :
17
+ - ubuntu-latest
18
+ - macOS-latest
19
+ arch :
20
+ - x64
21
+ steps :
22
+ - uses : actions/checkout@v2
23
+ - uses : julia-actions/setup-julia@v1
24
+ with :
25
+ version : ${{ matrix.version }}
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 }}-
37
+ - uses : julia-actions/julia-buildpkg@v1
38
+ - uses : julia-actions/julia-runtest@v1
39
+ - uses : julia-actions/julia-processcoverage@v1
40
+ - uses : coverallsapp/github-action@master
41
+ with :
42
+ path-to-lcov : lcov.info
43
+ github-token : ${{ secrets.GITHUB_TOKEN }}
44
+ flag-name : run${{ matrix.os }}-${{ matrix.version }}-${{ matrix.arch }}
45
+ parallel : true
46
+ # docs:
47
+ # name: Documentation
48
+ # runs-on: ubuntu-latest
49
+ # steps:
50
+ # - uses: actions/checkout@v2
51
+ # - uses: julia-actions/setup-julia@v1
52
+ # with:
53
+ # version: '1'
54
+ # - run: |
55
+ # julia --project=docs -e '
56
+ # using Pkg
57
+ # Pkg.develop(PackageSpec(path=pwd()))
58
+ # Pkg.instantiate()'
59
+ # - run: |
60
+ # julia --project=docs -e '
61
+ # using Documenter: DocMeta, doctest
62
+ # using Clipper
63
+ # DocMeta.setdocmeta!(Clipper, :DocTestSetup, :(using Clipper); recursive=true)
64
+ # doctest(Clipper)'
65
+ # - run: julia --project=docs docs/make.jl
66
+ # env:
67
+ # JULIA_PKG_SERVER: ""
68
+ # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69
+ # DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
70
+ # finish:
71
+ # needs: test
72
+ # if: always()
73
+ # runs-on: ubuntu-latest
74
+ # steps:
75
+ # - name: Coveralls Finished
76
+ # uses: coverallsapp/github-action@master
77
+ # with:
78
+ # github-token: ${{ secrets.GITHUB_TOKEN }}
79
+ # parallel-finished: true
0 commit comments