From 431dfd9b25674c7e77e4452d82a6527f8274d10a Mon Sep 17 00:00:00 2001 From: Hendrik Ranocha Date: Tue, 9 Jul 2024 13:25:06 +0200 Subject: [PATCH] Create Downgrade.yml (#92) * Create Downgrade.yml * bump minimum version of MuladdMacro for compatibility with OrdinaryDiffEq * bump minimum compat of OrdinaryDiffEq.jl * bump minimum version of LinearSolve for compat with SciMLBase * Cancel redundant CI tests automatically * bump version of FastBroadcast for ArrayInterface compat * adapt test compat settings * bump compat for LinearSolve to include StaticArrays bugfixes * same for tests * update LinearSolve again to fix StaticArray issues --- .github/workflows/CI.yml | 5 ++++ .github/workflows/Downgrade.yml | 49 +++++++++++++++++++++++++++++++++ Project.toml | 8 +++--- test/Project.toml | 4 +-- 4 files changed, 60 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/Downgrade.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 5710757a..381337f5 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,6 +8,11 @@ on: branches: - main +# Cancel redundant CI tests automatically +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: test: runs-on: ${{ matrix.os }} diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 00000000..928abf06 --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,49 @@ +name: Downgrade + +on: + pull_request: + workflow_dispatch: + +# Cancel redundant CI tests automatically +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + downgrade_test: + if: "!contains(github.event.head_commit.message, 'skip ci')" + name: Downgrade ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1' + - '1.9' + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-downgrade-compat@v1 + with: + skip: LinearAlgebra,SparseArrays + projects: ., test + - uses: julia-actions/julia-buildpkg@v1 + env: + PYTHON: "" + GKSwstype: "100" # for Plots/GR + - name: Run tests without coverage + uses: julia-actions/julia-runtest@v1 + with: + coverage: false + env: + PYTHON: "" + GKSwstype: "100" # for Plots/GR diff --git a/Project.toml b/Project.toml index d1ca22a4..5bb53446 100644 --- a/Project.toml +++ b/Project.toml @@ -17,11 +17,11 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182" SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5" [compat] -FastBroadcast = "0.2, 0.3" +FastBroadcast = "0.2.5, 0.3" LinearAlgebra = "1.7" -LinearSolve = "2" -MuladdMacro = "0.2" -OrdinaryDiffEq = "6" +LinearSolve = "2.21" +MuladdMacro = "0.2.1" +OrdinaryDiffEq = "6.59" Reexport = "1" SciMLBase = "2" SimpleUnPack = "1" diff --git a/test/Project.toml b/test/Project.toml index 34f0cfb5..47c99d38 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -10,7 +10,7 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] Aqua = "0.7, 0.8" -LinearSolve = "2" -OrdinaryDiffEq = "6" +LinearSolve = "2.21" +OrdinaryDiffEq = "6.59" StaticArrays = "1.5" Statistics = "1"