Skip to content

Commit 215c30f

Browse files
authored
Update CI setup (#6)
1 parent 6cd1beb commit 215c30f

File tree

2 files changed

+17
-14
lines changed

2 files changed

+17
-14
lines changed

.github/workflows/CI.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,19 @@ on:
55
branches:
66
- main
77
tags: '*'
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/') }}
813
jobs:
914
test:
1015
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1116
runs-on: ${{ matrix.os }}
17+
timeout-minutes: 60
18+
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
19+
actions: write
20+
contents: read
1221
strategy:
1322
fail-fast: false
1423
matrix:
@@ -21,24 +30,15 @@ jobs:
2130
arch:
2231
- x64
2332
steps:
24-
- uses: actions/checkout@v2
25-
- uses: julia-actions/setup-julia@v1
33+
- uses: actions/checkout@v4
34+
- uses: julia-actions/setup-julia@v2
2635
with:
2736
version: ${{ matrix.version }}
2837
arch: ${{ matrix.arch }}
29-
- uses: actions/cache@v1
30-
env:
31-
cache-name: cache-artifacts
32-
with:
33-
path: ~/.julia/artifacts
34-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
35-
restore-keys: |
36-
${{ runner.os }}-test-${{ env.cache-name }}-
37-
${{ runner.os }}-test-
38-
${{ runner.os }}-
38+
- uses: julia-actions/cache@v2
3939
- uses: julia-actions/julia-buildpkg@v1
4040
- uses: julia-actions/julia-runtest@v1
4141
- uses: julia-actions/julia-processcoverage@v1
42-
- uses: codecov/codecov-action@v1
42+
- uses: codecov/codecov-action@v5
4343
with:
44-
file: lcov.info
44+
token: ${{ secrets.CODECOV_TOKEN }}

.github/workflows/TagBot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
710
jobs:
811
TagBot:
912
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

0 commit comments

Comments
 (0)