Skip to content

Commit 5a0656a

Browse files
committed
up CI script
1 parent 3a86b09 commit 5a0656a

File tree

1 file changed

+22
-17
lines changed

1 file changed

+22
-17
lines changed

.github/workflows/CI.yml

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,40 +1,45 @@
11
name: CI
22
on:
3-
- push
4-
- pull_request
3+
push:
4+
branches:
5+
- main
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/') }}
514
jobs:
615
test:
7-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
817
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
922
strategy:
1023
fail-fast: false
1124
matrix:
1225
version:
13-
- '1'
26+
- '1.11'
1427
os:
1528
- ubuntu-latest
1629
arch:
1730
- x64
1831
steps:
19-
- uses: actions/checkout@v2
20-
- uses: julia-actions/setup-julia@v1
32+
- uses: actions/checkout@v4
33+
- uses: julia-actions/setup-julia@v2
2134
with:
2235
version: ${{ matrix.version }}
2336
arch: ${{ matrix.arch }}
24-
- uses: actions/cache@v2
25-
env:
26-
cache-name: cache-artifacts
27-
with:
28-
path: ~/.julia/artifacts
29-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
30-
restore-keys: |
31-
${{ runner.os }}-test-${{ env.cache-name }}-
32-
${{ runner.os }}-test-
33-
${{ runner.os }}-
37+
- uses: julia-actions/cache@v2
3438
- uses: julia-actions/julia-buildpkg@v1
3539
- uses: julia-actions/julia-runtest@v1
3640
- uses: julia-actions/julia-processcoverage@v1
3741
- uses: codecov/codecov-action@v4
3842
with:
39-
file: lcov.info
43+
files: lcov.info
4044
token: ${{ secrets.CODECOV_TOKEN }}
45+
fail_ci_if_error: false

0 commit comments

Comments
 (0)