-
Notifications
You must be signed in to change notification settings - Fork 6
55 lines (52 loc) · 1.74 KB
/
Downgrade.yml
File metadata and controls
55 lines (52 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Downgrade
on:
pull_request:
branches:
- main
paths-ignore:
- 'paper/**'
- '.gitignore'
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')"
name: Downgrade ${{ matrix.os }} - Julia ${{ matrix.version }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.10' # current lts
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v3
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- run: julia -e 'using InteractiveUtils; versioninfo(verbose=true)'
- uses: julia-actions/cache@v3
- uses: julia-actions/julia-downgrade-compat@v2
with:
skip: LinearAlgebra,SparseArrays,Statistics,Test
projects: ., test
mode: forcedeps
# We run the tests manually instead of using julia-action/julia-builpkg and julia-action/julia-runtest or `Pkg.test`
# because otherwise the downgraded Manifest.toml is not used in the tests under julia <v1.12
# see also https://github.com/julia-actions/julia-downgrade-compat/blob/00f940b7be2b50389571ed016d603be561649103/README.md#L89
- name: Run tests
run: |
julia --project=test --color=yes -e '
import Pkg
Pkg.develop(Pkg.PackageSpec(path=pwd()))
Pkg.instantiate()
Pkg.status(; mode = Pkg.PKGMODE_MANIFEST)
include("test/runtests.jl")
'