Skip to content

Commit f19daaa

Browse files
committed
Update CI.yml
1 parent 5c2d15c commit f19daaa

File tree

1 file changed

+17
-4
lines changed

1 file changed

+17
-4
lines changed

.github/workflows/CI.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,19 @@
11
name: CI
22
on:
3+
pull_request:
4+
branches:
5+
- main
36
push:
47
branches:
58
- main
6-
tags: ['*']
7-
pull_request:
8-
workflow_dispatch:
9+
tags: '*'
910
concurrency:
1011
# Skip intermediate builds: always.
1112
# Cancel intermediate builds: only if it is a pull request build.
1213
group: ${{ github.workflow }}-${{ github.ref }}
1314
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
15+
env:
16+
JULIA_NUM_THREADS: 2
1417
jobs:
1518
test:
1619
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -33,11 +36,21 @@ jobs:
3336
with:
3437
version: ${{ matrix.version }}
3538
arch: ${{ matrix.arch }}
39+
- uses: actions/cache@v4
40+
env:
41+
cache-name: cache-artifacts
42+
with:
43+
path: ~/.julia/artifacts
44+
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
45+
restore-keys: |
46+
${{ runner.os }}-test-${{ env.cache-name }}-
47+
${{ runner.os }}-test-
48+
${{ runner.os }}-
3649
- uses: julia-actions/cache@v2
3750
- uses: julia-actions/julia-buildpkg@v1
3851
- uses: julia-actions/julia-runtest@v1
3952
- uses: julia-actions/julia-processcoverage@v1
4053
- uses: codecov/codecov-action@v5
4154
with:
42-
files: lcov.info
55+
file: lcov.info
4356
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)