Skip to content

Commit

Permalink
Create Downgrade.yml (#92)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
ranocha authored Jul 9, 2024
1 parent 7a6f614 commit 431dfd9
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
49 changes: 49 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit 431dfd9

Please sign in to comment.