diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml new file mode 100644 index 00000000..ae299e31 --- /dev/null +++ b/.github/workflows/Downgrade.yml @@ -0,0 +1,56 @@ +name: Downgrade + +on: + pull_request: + paths-ignore: + - 'LICENSE.md' + - 'README.md' + - '.github/workflows/CompatHelper.yml' + - '.github/workflows/SpellCheck.yml' + - '.github/workflows/TagBot.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.10' + 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 + projects: ., test + - 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 5addc43a..0b2e0236 100644 --- a/Project.toml +++ b/Project.toml @@ -17,6 +17,6 @@ FastGaussQuadrature = "1" HCubature = "1.5" LinearAlgebra = "1" Meshes = "0.50, 0.51" -QuadGK = "2" -Unitful = "1" +QuadGK = "2.1.1" +Unitful = "1.19" julia = "1.6" diff --git a/test/Project.toml b/test/Project.toml index 8ba08814..9a150ccb 100644 --- a/test/Project.toml +++ b/test/Project.toml @@ -8,9 +8,9 @@ TestItems = "1c621080-faea-4a02-84b6-bbd5e436b8fe" Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [compat] -Aqua = "0.8" +Aqua = "0.7, 0.8" Meshes = "0.50, 0.51" -QuadGK = "2" +QuadGK = "2.1.1" TestItemRunner = "1" TestItems = "1" -Unitful = "1" +Unitful = "1.19"