Skip to content

Commit 2b5c0bf

Browse files
Create Downgrade.yml (#50)
* create Downgrade.yml * add compat bounds for stdlibs and remove unused TOML in Project.toml * skip Libdl (stdlib) * fix lower compat bounds
1 parent 27158f1 commit 2b5c0bf

File tree

3 files changed

+69
-5
lines changed

3 files changed

+69
-5
lines changed

.github/workflows/Downgrade.yml

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

Project.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,16 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
1010
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
1111
Preferences = "21216c6a-2e73-6563-6e65-726566657250"
1212
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
13-
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
1413
UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4"
1514
t8code_jll = "4ee9bed8-4011-53f7-90c2-22363c2f500d"
1615

1716
[compat]
1817
CEnum = "0.4, 0.5"
18+
Libdl = "1"
1919
MPI = "0.20"
20-
MPIPreferences = "0.1"
21-
Preferences = "1"
20+
MPIPreferences = "0.1.3"
21+
Preferences = "1.2"
2222
Reexport = "0.2, 1.0"
23-
TOML = "1"
23+
UUIDs = "1"
2424
julia = "1.6"
2525
t8code_jll = "=1.6.1"

test/Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
[deps]
22
MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195"
33
MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267"
4-
TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76"
54
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
65

76
[compat]
87
MPI = "0.20"
98
MPIPreferences = "0.1"
9+
Test = "1"

0 commit comments

Comments
 (0)