Skip to content

Commit

Permalink
Add downgrade action (#85)
Browse files Browse the repository at this point in the history
* add downgrade action

* fix lower compat of Unitful in test/

* allow Aqua.jl v0.7
  • Loading branch information
JoshuaLampert authored Sep 24, 2024
1 parent 8d5f81a commit bdd69e2
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 5 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
@@ -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: ""
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
6 changes: 3 additions & 3 deletions test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit bdd69e2

Please sign in to comment.