Skip to content

Commit 7f3ff7b

Browse files
updated ci
1 parent a3dd00f commit 7f3ff7b

1 file changed

Lines changed: 18 additions & 21 deletions

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: CI
22
on:
3-
pull_request:
4-
branches:
5-
- main
63
push:
74
branches:
85
- main
9-
tags: '*'
6+
tags: ['*']
7+
pull_request:
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/') }}
1013
jobs:
1114
test:
1215
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -15,40 +18,34 @@ jobs:
1518
fail-fast: false
1619
matrix:
1720
version:
18-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
19-
os: [ubuntu-latest]
21+
- '1'
22+
os:
23+
- ubuntu-latest
24+
- windows-latest # Add this line to include the latest Windows system
2025
arch:
2126
- x64
2227
steps:
23-
- uses: actions/checkout@v2
28+
- uses: actions/checkout@v3
2429
- uses: julia-actions/setup-julia@v1
2530
with:
2631
version: ${{ matrix.version }}
2732
arch: ${{ matrix.arch }}
28-
- uses: actions/cache@v1
29-
env:
30-
cache-name: cache-artifacts
31-
with:
32-
path: ~/.julia/artifacts
33-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
34-
restore-keys: |
35-
${{ runner.os }}-test-${{ env.cache-name }}-
36-
${{ runner.os }}-test-
37-
${{ runner.os }}-
33+
- uses: julia-actions/cache@v1
3834
- uses: julia-actions/julia-buildpkg@v1
3935
- uses: julia-actions/julia-runtest@v1
4036
- uses: julia-actions/julia-processcoverage@v1
41-
- uses: codecov/codecov-action@v1
42-
with:
43-
file: lcov.info
37+
- uses: codecov/codecov-action@v5
38+
env:
39+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
40+
4441
docs:
4542
name: Documentation
4643
runs-on: ubuntu-latest
4744
steps:
4845
- uses: actions/checkout@v2
4946
- uses: julia-actions/setup-julia@v1
5047
with:
51-
version: "1.8"
48+
version: "1.11"
5249
- uses: julia-actions/julia-docdeploy@releases/v1
5350
env:
5451
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)