From 2acf2e3ddd5efc8fe38ab17e28ca5ace34122c58 Mon Sep 17 00:00:00 2001 From: Seth Axen Date: Tue, 7 Jul 2026 12:36:28 +0200 Subject: [PATCH] ci: split downgrade testing into its own workflow Move the conditional downgrade matrix leg out of CI.yml into a separate Downgrade.yml, running only against Julia lts with mode: deps, matching the rest of the fleet. CI.yml goes back to a plain version matrix. Co-Authored-By: Claude Sonnet 5 --- .github/workflows/CI.yml | 15 +------------ .github/workflows/Downgrade.yml | 39 +++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/Downgrade.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a752e2ef..2ee141f1 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -16,7 +16,7 @@ concurrency: jobs: test: - name: ${{ matrix.downgrade && 'Downgrade / ' || '' }}Julia ${{ matrix.version }} - ${{ matrix.os }} + name: Julia ${{ matrix.version }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -28,30 +28,17 @@ jobs: - 'pre' os: - ubuntu-latest - downgrade: [false] include: - version: '1' os: windows-latest - downgrade: false - version: '1' os: macOS-latest - downgrade: false - - version: 'min' - os: ubuntu-latest - downgrade: true steps: - uses: actions/checkout@v7 - uses: julia-actions/setup-julia@v3 - id: setup-julia with: version: ${{ matrix.version }} - uses: julia-actions/cache@v3 - - uses: julia-actions/julia-downgrade-compat@v2 - with: - julia_version: ${{ steps.setup-julia.outputs.julia-version }} - skip: Dates,Random - if: ${{ matrix.downgrade }} - name: Downgrade dependencies to oldest supported versions - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 00000000..e6d2961a --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,39 @@ +name: Downgrade +on: + pull_request: + push: + branches: + - main + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +jobs: + test: + name: Downgrade / Julia ${{ matrix.version }} - ${{ matrix.os }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: ['lts'] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v7 + - uses: julia-actions/setup-julia@v3 + with: + version: ${{ matrix.version }} + - uses: julia-actions/cache@v3 + - uses: julia-actions/julia-downgrade-compat@v2 + with: + mode: deps + - uses: julia-actions/julia-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 + with: + allow_reresolve: false + force_latest_compatible_version: false + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v7 + with: + files: lcov.info