Skip to content

Commit f179322

Browse files
committed
test: update github actions CI and run tests on LTS and pre
1 parent 7266a8c commit f179322

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,22 +16,30 @@ jobs:
1616
name: Julia ${{ matrix.group }} - ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1717
runs-on: ${{ matrix.os }}
1818
timeout-minutes: 50
19+
permissions: # needed for julia-actions/cache to delete old caches
20+
actions: write
21+
contents: read
22+
continue-on-error: ${{ matrix.version == 'pre' }} # the CI badge will still pass if 'pre' fails
1923
strategy:
2024
fail-fast: false
2125
matrix:
22-
version: ['1']
26+
version:
27+
- 'lts' # long-term support release
28+
- '1' # latest stable 1.x release
29+
- 'pre' # latest stable prerelease
30+
# - 'nightly' # commented since too noisy + 'pre' allows testing upcoming versions
2331
os: [ubuntu-latest]
2432
arch: [x64]
2533
group:
2634
- ControlSystems
2735
- ControlSystemsBase
2836
steps:
29-
- uses: actions/checkout@v3
30-
- uses: julia-actions/setup-julia@v1
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
3139
with:
3240
version: ${{ matrix.version }}
3341
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/cache@v1
42+
- uses: julia-actions/cache@v2
3543
env:
3644
cache-name: cache-artifacts
3745
with:
@@ -50,7 +58,7 @@ jobs:
5058
with:
5159
directories: src,lib/ControlSystemsBase/src,lib/ControlSystemsBase/ext
5260
if: ${{ matrix.version == '1' }}
53-
- uses: codecov/codecov-action@v4
61+
- uses: codecov/codecov-action@v5
5462
if: ${{ matrix.version == '1' }}
5563
with:
5664
file: lcov.info

0 commit comments

Comments
 (0)