From f17932222229777bdd2d5135a44812ab0b81e5d9 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Tue, 1 Jul 2025 09:22:36 -0400 Subject: [PATCH 1/2] test: update github actions CI and run tests on `LTS` and `pre` --- .github/workflows/test.yml | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 98d9a3174..99052c8bd 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,22 +16,30 @@ jobs: name: Julia ${{ matrix.group }} - ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} timeout-minutes: 50 + permissions: # needed for julia-actions/cache to delete old caches + actions: write + contents: read + continue-on-error: ${{ matrix.version == 'pre' }} # the CI badge will still pass if 'pre' fails strategy: fail-fast: false matrix: - version: ['1'] + version: + - 'lts' # long-term support release + - '1' # latest stable 1.x release + - 'pre' # latest stable prerelease + # - 'nightly' # commented since too noisy + 'pre' allows testing upcoming versions os: [ubuntu-latest] arch: [x64] group: - ControlSystems - ControlSystemsBase steps: - - uses: actions/checkout@v3 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v1 + - uses: julia-actions/cache@v2 env: cache-name: cache-artifacts with: @@ -50,7 +58,7 @@ jobs: with: directories: src,lib/ControlSystemsBase/src,lib/ControlSystemsBase/ext if: ${{ matrix.version == '1' }} - - uses: codecov/codecov-action@v4 + - uses: codecov/codecov-action@v5 if: ${{ matrix.version == '1' }} with: file: lcov.info From f188917631161d7f0f0177e048e88fdbdc73eb08 Mon Sep 17 00:00:00 2001 From: franckgaga Date: Tue, 1 Jul 2025 09:47:34 -0400 Subject: [PATCH 2/2] test: also skip `nightly` --- .github/workflows/test.yml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 99052c8bd..7f524b73b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -19,7 +19,7 @@ jobs: permissions: # needed for julia-actions/cache to delete old caches actions: write contents: read - continue-on-error: ${{ matrix.version == 'pre' }} # the CI badge will still pass if 'pre' fails + continue-on-error: ${{ matrix.version == 'pre' || matrix.version == 'nightly' }} # the CI badge will still pass if 'pre' or 'nightly' fails strategy: fail-fast: false matrix: @@ -53,7 +53,6 @@ jobs: - uses: julia-actions/julia-runtest@v1 env: GROUP: ${{ matrix.group }} - # continue-on-error: ${{ matrix.version == 'nightly' }} # Allow nightly to fail and workflow still count as completed - uses: julia-actions/julia-processcoverage@v1 with: directories: src,lib/ControlSystemsBase/src,lib/ControlSystemsBase/ext