|
1 | 1 | name: CI |
2 | 2 | on: |
3 | | - - push |
4 | | - - pull_request |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - master |
| 6 | + tags: ['*'] |
| 7 | + pull_request: |
| 8 | + workflow_dispatch: |
| 9 | +concurrency: |
| 10 | + # Skip intermediate builds: always. |
| 11 | + # Cancel intermediate builds: only if it is a pull request build. |
| 12 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 13 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
5 | 14 | jobs: |
6 | 15 | test: |
7 | | - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} |
| 16 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} |
8 | 17 | runs-on: ${{ matrix.os }} |
| 18 | + timeout-minutes: 60 |
| 19 | + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created |
| 20 | + actions: write |
| 21 | + contents: read |
9 | 22 | strategy: |
10 | 23 | fail-fast: false |
11 | 24 | matrix: |
12 | 25 | version: |
13 | | - - '1.5' |
14 | | - - '1.6' |
15 | | - - 'nightly' |
| 26 | + - '1.10' # LTS, minimum supported version |
| 27 | + - '1' # latest stable release |
| 28 | + - 'pre' # latest prerelease, if any |
16 | 29 | os: |
17 | 30 | - ubuntu-latest |
18 | | - - macOS-latest |
| 31 | + - macos-latest |
19 | 32 | - windows-latest |
20 | | - arch: |
21 | | - - x64 |
22 | | - - x86 |
23 | | - exclude: |
24 | | - - os: macOS-latest |
25 | | - arch: x86 |
26 | 33 | steps: |
27 | | - - uses: actions/checkout@v2 |
28 | | - - uses: julia-actions/setup-julia@v1 |
| 34 | + - uses: actions/checkout@v7 |
| 35 | + - uses: julia-actions/setup-julia@v3 |
29 | 36 | with: |
30 | 37 | version: ${{ matrix.version }} |
31 | | - arch: ${{ matrix.arch }} |
32 | | - - uses: actions/cache@v1 |
33 | | - env: |
34 | | - cache-name: cache-artifacts |
35 | | - with: |
36 | | - path: ~/.julia/artifacts |
37 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
38 | | - restore-keys: | |
39 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
40 | | - ${{ runner.os }}-test- |
41 | | - ${{ runner.os }}- |
| 38 | + - uses: julia-actions/cache@v3 |
42 | 39 | - uses: julia-actions/julia-buildpkg@v1 |
43 | 40 | - uses: julia-actions/julia-runtest@v1 |
| 41 | + - uses: julia-actions/julia-processcoverage@v1 |
| 42 | + - uses: codecov/codecov-action@v7 |
| 43 | + with: |
| 44 | + files: lcov.info |
| 45 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 46 | + fail_ci_if_error: false |
0 commit comments