Skip to content

Commit d6097a3

Browse files
authored
Update ci.yml
1 parent 8cbe934 commit d6097a3

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@ on:
33
pull_request:
44
branches:
55
- main
6-
- '**'
6+
- '**' # matches every branch
77
push:
88
branches:
99
- main
1010
tags: '*'
11-
1211
jobs:
1312
test:
1413
name: Tests, Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -17,27 +16,25 @@ jobs:
1716
fail-fast: false
1817
matrix:
1918
version:
20-
- '1' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
21-
os:
22-
- ubuntu-latest
19+
- '1'
20+
os: [ubuntu-latest] # adjust according to need, e.g. os: [ubuntu-latest] if testing only on linux
2321
arch:
2422
- x64
25-
2623
steps:
27-
# Cancel ongoing CI test runs if pushing to branch again before the previous tests
24+
# Cancel ongoing CI test runs if pushing to branch again before the previous tests
2825
# have finished
2926
- name: Cancel ongoing test runs for previous commits
30-
uses: styfle/cancel-workflow-action@0.6.0
27+
uses: styfle/cancel-workflow-action@0.12.0
3128
with:
3229
access_token: ${{ github.token }}
33-
30+
3431
# Do tests
3532
- uses: actions/checkout@v2
3633
- uses: julia-actions/setup-julia@v1
3734
with:
3835
version: ${{ matrix.version }}
3936
arch: ${{ matrix.arch }}
40-
- uses: actions/cache@v1
37+
- uses: actions/cache@v4
4138
env:
4239
cache-name: cache-artifacts
4340
with:
@@ -48,9 +45,9 @@ jobs:
4845
${{ runner.os }}-test-
4946
${{ runner.os }}-
5047
- uses: julia-actions/julia-buildpkg@v1
48+
5149
- uses: julia-actions/julia-runtest@v1
5250
- uses: julia-actions/julia-processcoverage@v1
53-
- uses: codecov/codecov-action@v4
51+
- uses: codecov/codecov-action@v1
5452
with:
55-
token: ${{ secrets.CODECOV_TOKEN }}
56-
fail_ci_if_error: false # or true if you want CI to fail when Codecov fails
53+
file: lcov.info

0 commit comments

Comments
 (0)