Skip to content

Commit c11d5d5

Browse files
chore: generalize downgrade and compathelper workflows
1 parent 1392a2e commit c11d5d5

File tree

3 files changed

+30
-16
lines changed

3 files changed

+30
-16
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ jobs:
1010
steps:
1111
- name: Pkg.add("CompatHelper")
1212
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
13+
1314
- name: CompatHelper.main()
1415
env:
1516
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main(;subdirs=["", "docs"])'
17+
run: julia -e 'using CompatHelper; CompatHelper.main(;subdirs=["", "docs", "lib/ReservoirCellularAutomata", "lib/ReservoirCellularAutomata/docs"])'
18+

.github/workflows/Downgrade.yml

Lines changed: 26 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,36 @@
11
name: Downgrade
2+
23
on:
34
pull_request:
4-
branches:
5-
- master
6-
paths-ignore:
7-
- 'docs/**'
5+
branches: [ master ]
6+
paths:
7+
- 'lib/ReservoirCellularAutomata/**'
8+
- '.github/workflows/**'
9+
paths-ignore: [ 'docs/**' ]
810
push:
9-
branches:
10-
- master
11-
paths-ignore:
12-
- 'docs/**'
11+
branches: [ master ]
12+
paths-ignore: [ 'docs/**' ]
1313
schedule:
1414
- cron: '33 1 * * 4'
15+
1516
jobs:
16-
test:
17-
runs-on: ${{ matrix.os }}
17+
downgrade:
1818
strategy:
1919
fail-fast: false
2020
matrix:
21-
group:
22-
- Core
23-
version:
24-
- '1'
21+
project:
22+
- name: ReservoirComputing
23+
path: .
24+
- name: ReservoirCellularAutomata
25+
path: lib/ReservoirCellularAutomata
26+
version: ['1']
2527
os:
2628
- ubuntu-latest
2729
- macos-latest
2830
- windows-latest
31+
32+
runs-on: ${{ matrix.os }}
33+
name: Downgrade – ${{ matrix.project.name }} · Julia ${{ matrix.version }} · ${{ matrix.os }}
2934
steps:
3035
- uses: actions/checkout@v4
3136
- uses: julia-actions/setup-julia@v2
@@ -34,8 +39,15 @@ jobs:
3439
- uses: julia-actions/julia-downgrade-compat@v1
3540
with:
3641
skip: Pkg, TOML, Test, Random, LinearAlgebra, Statistics, SparseArrays
42+
project: ${{ matrix.project.path }}
3743
- uses: julia-actions/cache@v2
3844
with:
3945
token: ${{ secrets.GITHUB_TOKEN }}
46+
project: ${{ matrix.project.path }}
4047
- uses: julia-actions/julia-buildpkg@v1
48+
with:
49+
project: ${{ matrix.project.path }}
4150
- uses: julia-actions/julia-runtest@v1
51+
with:
52+
project: ${{ matrix.project.path }}
53+

lib/ReservoirCellularAutomata/Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Aqua = "0.8"
1414
CellularAutomata = "0.0.6"
1515
Random = "1.11.0"
1616
Reexport = "1.2.2"
17-
ReservoirComputing = "0.12.0"
17+
ReservoirComputing = "0.11.3"
1818
SafeTestsets = "0.1.0"
1919
Test = "1"
2020
julia = "1.10"

0 commit comments

Comments
 (0)