|
| 1 | +name: JET |
| 2 | +on: |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - main |
| 6 | + tags: ['*'] |
| 7 | + paths-ignore: |
| 8 | + - 'CITATION.bib' |
| 9 | + - 'LICENSE.md' |
| 10 | + - 'README.md' |
| 11 | + - '.zenodo.json' |
| 12 | + - '.github/workflows/benchmark.yml' |
| 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 | + - 'benchmark/**' |
| 19 | + - 'docs/**' |
| 20 | + pull_request: |
| 21 | + paths-ignore: |
| 22 | + - 'CITATION.bib' |
| 23 | + - 'LICENSE.md' |
| 24 | + - 'README.md' |
| 25 | + - '.zenodo.json' |
| 26 | + - '.github/workflows/benchmark.yml' |
| 27 | + - '.github/workflows/CompatHelper.yml' |
| 28 | + - '.github/workflows/Documenter.yml' |
| 29 | + - '.github/workflows/Format-check.yml' |
| 30 | + - '.github/workflows/TagBot.yml' |
| 31 | + - '.github/workflows/SpellCheck.yml' |
| 32 | + - 'benchmark/**' |
| 33 | + - 'docs/**' |
| 34 | + workflow_dispatch: |
| 35 | + |
| 36 | +concurrency: |
| 37 | + # Skip intermediate builds: always. |
| 38 | + # Cancel intermediate builds: only if it is a pull request build. |
| 39 | + group: ${{ github.workflow }}-${{ github.ref }} |
| 40 | + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} |
| 41 | + |
| 42 | +jobs: |
| 43 | + test: |
| 44 | + if: "!contains(github.event.head_commit.message, 'skip ci')" |
| 45 | + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} |
| 46 | + runs-on: ${{ matrix.os }} |
| 47 | + strategy: |
| 48 | + fail-fast: false |
| 49 | + matrix: |
| 50 | + version: |
| 51 | + - '1.12' |
| 52 | + os: |
| 53 | + - ubuntu-latest |
| 54 | + steps: |
| 55 | + - uses: actions/checkout@v5 |
| 56 | + - uses: julia-actions/setup-julia@v2 |
| 57 | + with: |
| 58 | + version: ${{ matrix.version }} |
| 59 | + - run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)' |
| 60 | + - uses: julia-actions/cache@v2 |
| 61 | + - name: Install and run JET.jl |
| 62 | + shell: julia --project="." --color=yes {0} |
| 63 | + run: | |
| 64 | + using Pkg |
| 65 | + Pkg.add("JET") |
| 66 | + # We need to add Plots.jl to make the definition of `is_attr_supported` available |
| 67 | + # Otherwise, JET.jl fails since it is not defined for the keyword arguments in the plot recipes. |
| 68 | + Pkg.add("Plots") |
| 69 | + Pkg.instantiate() |
| 70 | + using JET |
| 71 | + import Plots |
| 72 | + using DispersiveShallowWater |
| 73 | +
|
| 74 | + test_package(DispersiveShallowWater; |
| 75 | + target_modules = (DispersiveShallowWater,)) |
0 commit comments