Skip to content

Commit b1341b5

Browse files
authored
Add CI for compat lower bounds (#2919)
1 parent 476851b commit b1341b5

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,29 +32,40 @@ jobs:
3232
- version: 'nightly'
3333
os: ubuntu-latest
3434
arch: x64
35+
downgrade: false
3536
- version: '1'
3637
os: ubuntu-latest
3738
arch: x64
39+
downgrade: false
3840
- version: '1'
3941
os: windows-latest
4042
arch: x64
43+
downgrade: false
4144
- version: '1.10'
4245
os: ubuntu-latest
4346
arch: x64
47+
downgrade: true
4448
- version: '1'
4549
os: ubuntu-latest
4650
arch: x86
51+
downgrade: false
4752
steps:
4853
- uses: actions/checkout@v4
4954
- uses: julia-actions/setup-julia@v2
5055
with:
5156
version: ${{ matrix.machine.version }}
5257
arch: ${{ matrix.machine.arch }}
5358
- uses: julia-actions/cache@v1
59+
- if: ${{ matrix.machine.downgrade }}
60+
uses: julia-actions/julia-downgrade-compat@v2
61+
with:
62+
mode: deps
5463
- uses: julia-actions/julia-buildpkg@v1
5564
- uses: julia-actions/julia-runtest@v1
5665
with:
5766
depwarn: error
67+
allow_reresolve: ${{ !matrix.machine.downgrade }}
68+
force_latest_compatible_version: ${{ !matrix.machine.downgrade }}
5869
env:
5970
MOI_TEST_MODULES: ${{ matrix.moi_test_modules }}
6071
- uses: julia-actions/julia-processcoverage@v1

Project.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
2222
BenchmarkTools = "1"
2323
CodecBzip2 = "0.6, 0.7, 0.8"
2424
CodecZlib = "0.6, 0.7"
25-
ForwardDiff = "0.10, 1"
26-
JSON = "1"
25+
ForwardDiff = "1"
26+
JSON = "0.21, 1"
2727
JSONSchema = "1"
2828
LinearAlgebra = "1"
2929
MutableArithmetics = "1"
@@ -32,7 +32,7 @@ OrderedCollections = "1"
3232
PrecompileTools = "1"
3333
Printf = "1"
3434
SparseArrays = "1"
35-
SpecialFunctions = "0.8, 1, 2"
35+
SpecialFunctions = "1, 2"
3636
Test = "1"
3737
julia = "1.10"
3838

0 commit comments

Comments
 (0)