From 2b5c0bfd0546dbfcbaea37dbdaf18eaf02119422 Mon Sep 17 00:00:00 2001 From: Joshua Lampert <51029046+JoshuaLampert@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:46:17 +0100 Subject: [PATCH] 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 --- .github/workflows/Downgrade.yml | 64 +++++++++++++++++++++++++++++++++ Project.toml | 8 ++--- test/Project.toml | 2 +- 3 files changed, 69 insertions(+), 5 deletions(-) create mode 100644 .github/workflows/Downgrade.yml diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 0000000..0e33e99 --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,64 @@ +name: Downgrade + +on: + pull_request: + paths-ignore: + - 'AUTHORS.md' + - 'CITATION.bib' + - 'CONTRIBUTING.md' + - 'LICENSE.md' + - 'NEWS.md' + - 'README.md' + - '.zenodo.json' + - '.github/workflows/CompatHelper.yml' + - '.github/workflows/Documenter.yml' + - '.github/workflows/Format-check.yml' + - '.github/workflows/TagBot.yml' + - '.github/workflows/SpellCheck.yml' + - 'docs/**' + 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')" + # We could also include the Julia version as in + # name: ${{ matrix.trixi_test }} - ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ matrix.arch }} - ${{ github.event_name }} + # to be more specific. However, that requires us updating the required CI tests whenever we update Julia. + name: Downgrade ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.9' + # - '~1.9.0-0' # including development versions + # - 'nightly' + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' + - uses: julia-actions/cache@v1 + - uses: cjdoris/julia-downgrade-compat-action@v1.0.7 + with: + skip: Libdl,UUIDs + - uses: julia-actions/julia-buildpkg@v1 + env: + PYTHON: "" + - name: Run tests without coverage + uses: julia-actions/julia-runtest@v1 + with: + coverage: false + env: + PYTHON: "" diff --git a/Project.toml b/Project.toml index 7a02a27..2850abc 100644 --- a/Project.toml +++ b/Project.toml @@ -10,16 +10,16 @@ MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267" Preferences = "21216c6a-2e73-6563-6e65-726566657250" Reexport = "189a3867-3050-52da-a836-e630ba90ab69" -TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" UUIDs = "cf7118a7-6976-5b1a-9a39-7adc72f591a4" t8code_jll = "4ee9bed8-4011-53f7-90c2-22363c2f500d" [compat] CEnum = "0.4, 0.5" +Libdl = "1" MPI = "0.20" -MPIPreferences = "0.1" -Preferences = "1" +MPIPreferences = "0.1.3" +Preferences = "1.2" Reexport = "0.2, 1.0" -TOML = "1" +UUIDs = "1" julia = "1.6" t8code_jll = "=1.6.1" diff --git a/test/Project.toml b/test/Project.toml index cabf463..dfc6694 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -1,9 +1,9 @@ [deps] MPI = "da04e1cc-30fd-572f-bb4f-1f8673147195" MPIPreferences = "3da0fdf6-3ccc-4f1b-acd9-58baa6c99267" -TOML = "fa267f1f-6049-4f14-aa54-33bafae1ed76" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [compat] MPI = "0.20" MPIPreferences = "0.1" +Test = "1"