|
8 | 8 | tags: |
9 | 9 | - v** |
10 | 10 | workflow_dispatch: |
| 11 | +concurrency: |
| 12 | + # Skip intermediate builds: always. |
| 13 | + # Cancel intermediate builds: only if it is a pull request build. |
| 14 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 15 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
11 | 16 | jobs: |
12 | 17 | test: |
13 | 18 | name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} |
14 | 19 | runs-on: ${{ matrix.os }} |
15 | | - env: |
16 | | - JULIA_PKG_SERVER: "" |
| 20 | + timeout-minutes: 60 |
| 21 | + permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created |
| 22 | + actions: write |
| 23 | + contents: read |
17 | 24 | strategy: |
18 | 25 | fail-fast: false |
19 | 26 | matrix: |
20 | 27 | version: |
21 | | - - '1.10' |
22 | | - - 'nightly' |
| 28 | + - 'lts' # long term support |
| 29 | + - '1' # stable |
| 30 | + # - 'pre' # pre-release |
23 | 31 | os: |
24 | 32 | - ubuntu-latest |
25 | 33 | arch: |
26 | 34 | - x64 |
27 | 35 | steps: |
28 | 36 | - name: Checkout |
29 | | - uses: actions/checkout@v2 |
| 37 | + uses: actions/checkout@v4 |
30 | 38 |
|
31 | 39 | - name: Setup Julia |
32 | | - uses: julia-actions/setup-julia@v1 |
| 40 | + uses: julia-actions/setup-julia@v2 |
33 | 41 | with: |
34 | 42 | version: ${{ matrix.version }} |
35 | 43 | arch: ${{ matrix.arch }} |
36 | 44 |
|
37 | 45 | - name: Cache Artifacts |
38 | | - uses: actions/cache@v1 |
39 | | - env: |
40 | | - cache-name: cache-artifacts |
41 | | - with: |
42 | | - path: ~/.julia/artifacts |
43 | | - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} |
44 | | - restore-keys: | |
45 | | - ${{ runner.os }}-test-${{ env.cache-name }}- |
46 | | - ${{ runner.os }}-test- |
47 | | - ${{ runner.os }}- |
| 46 | + uses: julia-actions/cache@v2 |
48 | 47 |
|
49 | 48 | - name: Julia Build Pkg |
50 | 49 | uses: julia-actions/julia-buildpkg@latest |
51 | | - |
52 | | - - name: Git Test Credentials |
53 | | - run: | |
54 | | - git config --global user.name Tester |
55 | | - git config --global user.email te@st.er |
56 | | - |
| 50 | + |
57 | 51 | - name: Run tests |
58 | 52 | env: |
59 | 53 | IIF_TEST: true |
60 | | - DO_CGDFG_TESTS: false |
61 | | - DFG_USE_CGDFG: false |
62 | | - uses: julia-actions/julia-runtest@latest |
63 | | - continue-on-error: ${{ matrix.version == 'nightly' }} |
64 | | - |
| 54 | + uses: julia-actions/julia-runtest@latest |
65 | 55 | - name: Process Coverage |
66 | 56 | uses: julia-actions/julia-processcoverage@v1 |
67 | 57 |
|
68 | 58 | - name: Code Coverage |
69 | | - uses: codecov/codecov-action@v1 |
| 59 | + uses: codecov/codecov-action@v4 |
70 | 60 | with: |
71 | | - file: lcov.info |
| 61 | + files: lcov.info |
| 62 | + token: ${{ secrets.CODECOV_TOKEN }} |
| 63 | + fail_ci_if_error: false |
72 | 64 |
|
73 | 65 | docs: |
74 | 66 | needs: test |
|
80 | 72 | uses: actions/checkout@v2 |
81 | 73 |
|
82 | 74 | - name: Setup julia |
83 | | - uses: julia-actions/setup-julia@v1 |
| 75 | + uses: julia-actions/setup-julia@v2 |
84 | 76 | with: |
85 | | - version: '1.10' |
| 77 | + version: 'lts' |
86 | 78 | arch: x64 |
87 | 79 |
|
88 | 80 | - name: Build Docs |
|
0 commit comments