Skip to content

Commit bdd69e2

Browse files
Add downgrade action (#85)
* add downgrade action * fix lower compat of Unitful in test/ * allow Aqua.jl v0.7
1 parent 8d5f81a commit bdd69e2

File tree

3 files changed

+61
-5
lines changed

3 files changed

+61
-5
lines changed

.github/workflows/Downgrade.yml

+56
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Downgrade
2+
3+
on:
4+
pull_request:
5+
paths-ignore:
6+
- 'LICENSE.md'
7+
- 'README.md'
8+
- '.github/workflows/CompatHelper.yml'
9+
- '.github/workflows/SpellCheck.yml'
10+
- '.github/workflows/TagBot.yml'
11+
- 'docs/**'
12+
workflow_dispatch:
13+
14+
# Cancel redundant CI tests automatically
15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
19+
jobs:
20+
downgrade_test:
21+
if: "!contains(github.event.head_commit.message, 'skip ci')"
22+
# We could also include the Julia version as in
23+
# name: ${{ matrix.trixi_test }} - ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ matrix.arch }} - ${{ github.event_name }}
24+
# to be more specific. However, that requires us updating the required CI tests whenever we update Julia.
25+
name: Downgrade ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
26+
runs-on: ${{ matrix.os }}
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
version:
31+
- '1.10'
32+
os:
33+
- ubuntu-latest
34+
arch:
35+
- x64
36+
steps:
37+
- uses: actions/checkout@v4
38+
- uses: julia-actions/setup-julia@v2
39+
with:
40+
version: ${{ matrix.version }}
41+
arch: ${{ matrix.arch }}
42+
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
43+
- uses: julia-actions/cache@v2
44+
- uses: julia-actions/julia-downgrade-compat@v1
45+
with:
46+
skip: LinearAlgebra
47+
projects: ., test
48+
- uses: julia-actions/julia-buildpkg@v1
49+
env:
50+
PYTHON: ""
51+
- name: Run tests without coverage
52+
uses: julia-actions/julia-runtest@v1
53+
with:
54+
coverage: false
55+
env:
56+
PYTHON: ""

Project.toml

+2-2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ FastGaussQuadrature = "1"
1717
HCubature = "1.5"
1818
LinearAlgebra = "1"
1919
Meshes = "0.50, 0.51"
20-
QuadGK = "2"
21-
Unitful = "1"
20+
QuadGK = "2.1.1"
21+
Unitful = "1.19"
2222
julia = "1.6"

test/Project.toml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe"
88
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
99

1010
[compat]
11-
Aqua = "0.8"
11+
Aqua = "0.7, 0.8"
1212
Meshes = "0.50, 0.51"
13-
QuadGK = "2"
13+
QuadGK = "2.1.1"
1414
TestItemRunner = "1"
1515
TestItems = "1"
16-
Unitful = "1"
16+
Unitful = "1.19"

0 commit comments

Comments
 (0)