|
1 | 1 | name: CI
|
2 | 2 | on:
|
3 |
| - pull_request: |
4 |
| - branches: |
5 |
| - - master |
6 | 3 | push:
|
7 | 4 | branches:
|
8 | 5 | - master
|
9 |
| - tags: '*' |
| 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/') }} |
10 | 13 | jobs:
|
11 | 14 | test:
|
12 |
| - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 15 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} |
13 | 16 | runs-on: ${{ matrix.os }}
|
14 | 17 | strategy:
|
15 | 18 | fail-fast: false
|
16 | 19 | matrix:
|
17 | 20 | version:
|
18 |
| - - '1' # will expand to the latest stable 1.x release of Julia. |
| 21 | + - '1' |
19 | 22 | os:
|
20 | 23 | - ubuntu-latest
|
21 | 24 | - macos-latest
|
22 |
| - arch: |
23 |
| - - x64 |
| 25 | + - windows-latest |
24 | 26 | steps:
|
25 | 27 | - uses: actions/checkout@v2
|
26 |
| - - uses: julia-actions/setup-julia@v1 |
| 28 | + - uses: julia-actions/setup-julia@v2 |
27 | 29 | with:
|
28 | 30 | version: ${{ matrix.version }}
|
29 |
| - 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 }}- |
| 31 | + - uses: julia-actions/cache@v2 |
40 | 32 | - uses: julia-actions/julia-buildpkg@v1
|
41 | 33 | - uses: julia-actions/julia-runtest@v1
|
42 | 34 | - uses: julia-actions/julia-processcoverage@v1
|
43 |
| - - uses: codecov/codecov-action@v2 |
| 35 | + - uses: codecov/codecov-action@v4 |
44 | 36 | with:
|
45 |
| - file: lcov.info |
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 |
| - - uses: julia-actions/julia-buildpkg@v1 |
55 |
| - - name: install dependencies |
56 |
| - run: | |
57 |
| - julia --project=docs -e ' |
58 |
| - using Pkg |
59 |
| - Pkg.develop(PackageSpec(path=pwd())) |
60 |
| - Pkg.instantiate() |
61 |
| - Pkg.build("QuartetNetworkGoodnessFit")' |
62 |
| - - name: doc tests |
63 |
| - run: | |
64 |
| - julia --project=docs -e ' |
65 |
| - using Documenter: doctest |
66 |
| - using QuartetNetworkGoodnessFit |
67 |
| - doctest(QuartetNetworkGoodnessFit)' |
68 |
| - - name: build and deploy doc |
69 |
| - run: julia --project=docs docs/make.jl |
70 |
| - env: |
71 |
| - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
72 |
| - DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} |
| 37 | + files: lcov.info |
| 38 | + token: ${{ secrets.CODECOV_TOKEN }} |
0 commit comments