Skip to content

Commit 6af2bb1

Browse files
authored
Merge pull request #196 from JuliaDynamics/hw/dropcompat
drop compat in test project
2 parents c04cd11 + ad0d576 commit 6af2bb1

File tree

6 files changed

+158
-48
lines changed

6 files changed

+158
-48
lines changed

.github/workflows/CompatHelper.yml

Lines changed: 32 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,42 @@ on:
33
schedule:
44
- cron: 0 0 * * *
55
workflow_dispatch:
6+
permissions:
7+
contents: write
8+
pull-requests: write
69
jobs:
710
CompatHelper:
811
runs-on: ubuntu-latest
912
steps:
10-
- name: Pkg.add("CompatHelper")
11-
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
12-
- name: CompatHelper.main()
13+
- name: Check if Julia is already available in the PATH
14+
id: julia_in_path
15+
run: which julia
16+
continue-on-error: true
17+
- name: Install Julia, but only if it is not already available in the PATH
18+
uses: julia-actions/setup-julia@v2
19+
with:
20+
version: '1'
21+
arch: ${{ runner.arch }}
22+
if: steps.julia_in_path.outcome != 'success'
23+
- name: "Add the General registry via Git"
24+
run: |
25+
import Pkg
26+
ENV["JULIA_PKG_SERVER"] = ""
27+
Pkg.Registry.add("General")
28+
shell: julia --color=yes {0}
29+
- name: "Install CompatHelper"
30+
run: |
31+
import Pkg
32+
name = "CompatHelper"
33+
uuid = "aa819f21-2bde-4658-8897-bab36330d9b7"
34+
version = "3"
35+
Pkg.add(; name, uuid, version)
36+
shell: julia --color=yes {0}
37+
- name: "Run CompatHelper"
38+
run: |
39+
import CompatHelper
40+
CompatHelper.main(; subdirs=["", "docs", "test", "benchmark"])
41+
shell: julia --color=yes {0}
1342
env:
1443
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1544
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
16-
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/benchmark.yml

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,48 +6,48 @@ on:
66
concurrency:
77
# Skip intermediate builds: always.
88
group: ${{ github.workflow }}-${{ github.ref }}
9-
cancel-in-progress: true # allways cancle old runs on new push
9+
cancel-in-progress: true # always cancel old runs on new push
1010

1111
permissions:
1212
pull-requests: write
1313
actions: write
1414
contents: read
1515

1616
jobs:
17-
run_benchmarks:
18-
runs-on: ubuntu-latest
19-
20-
steps:
21-
- uses: actions/checkout@v4
22-
with:
23-
fetch-depth: 0 # fetch all history
24-
- uses: julia-actions/setup-julia@v2
25-
- uses: julia-actions/cache@v2
26-
- uses: julia-actions/julia-buildpkg@v1
27-
- name: Run benchmarks
28-
env:
29-
JULIA_NUM_THREADS: auto
30-
working-directory: benchmark
31-
run: |
32-
julia --color=yes ./run_benchmarks.jl -t ${{github.event.pull_request.head.ref}} -b ${{github.event.pull_request.base.ref}} --no-data-export --prefix ""
33-
echo '### Benchmark Results' > body.md
34-
echo '' >> body.md
35-
echo '```' >> body.md
36-
cat comparison.txt >> body.md
37-
echo '```' >> body.md
38-
echo '' >> body.md
39-
- name: Upload plot
40-
uses: actions/upload-artifact@v4
41-
id: artifact-upload-step
42-
with:
43-
name: comparison.pdf
44-
path: benchmark/comparison.pdf
45-
- name: Link to graphic
46-
run: |
47-
echo '${{ steps.artifact-upload-step.outputs.artifact-url }}' >> benchmark/body.md
48-
- uses: int128/hide-comment-action@v1 # hide all previous comments
49-
- name: Comment on PR
50-
uses: peter-evans/create-or-update-comment@v3
51-
with:
52-
issue-number: ${{ github.event.pull_request.number }}
53-
body-path: benchmark/body.md
17+
run_benchmarks:
18+
if: "!contains(github.event.pull_request.title, '[no benchmark]') && !contains(github.event.pull_request.body, '[no benchmark]')"
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0 # fetch all history
24+
- uses: julia-actions/setup-julia@v2
25+
- uses: julia-actions/cache@v2
26+
- uses: julia-actions/julia-buildpkg@v1
27+
- name: Run benchmarks
28+
env:
29+
JULIA_NUM_THREADS: auto
30+
working-directory: benchmark
31+
run: |
32+
julia --color=yes ./run_benchmarks.jl -t ${{github.event.pull_request.head.ref}} -b ${{github.event.pull_request.base.ref}} --no-data-export --prefix ""
33+
echo '### Benchmark Results' > body.md
34+
echo '' >> body.md
35+
echo '```' >> body.md
36+
cat comparison.txt >> body.md
37+
echo '```' >> body.md
38+
echo '' >> body.md
39+
- name: Upload plot
40+
uses: actions/upload-artifact@v4
41+
id: artifact-upload-step
42+
with:
43+
name: comparison.pdf
44+
path: benchmark/comparison.pdf
45+
- name: Link to graphic
46+
run: |
47+
echo '${{ steps.artifact-upload-step.outputs.artifact-url }}' >> benchmark/body.md
48+
- uses: int128/hide-comment-action@v1 # hide all previous comments
49+
- name: Comment on PR
50+
uses: peter-evans/create-or-update-comment@v3
51+
with:
52+
issue-number: ${{ github.event.pull_request.number }}
53+
body-path: benchmark/body.md

benchmark/Project.toml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
[deps]
22
AbstractTrees = "1520ce14-60c1-5f80-bbc7-55ef81b5835c"
33
ArgParse = "c7e460c6-2fb9-53a9-8c5b-16f535851c63"
4-
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
54
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
65
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
76
Chairmarks = "0ca39b1e-fe0b-4e98-acfc-b1656634c4de"
@@ -22,3 +21,23 @@ UnicodePlots = "b8865327-cd53-5732-bb35-84acbb429228"
2221

2322
[sources]
2423
NetworkDynamics = {path = ".."}
24+
25+
[compat]
26+
AbstractTrees = "0.4.5"
27+
ArgParse = "1.2.0"
28+
CUDA = "≥0.0.1"
29+
CairoMakie = "0.13.1"
30+
Chairmarks = "1.3.1"
31+
Graphs = "≥0.0.1"
32+
Makie = "0.22.1"
33+
OrderedCollections = "1.7.0"
34+
PkgBenchmark = "0.2.12"
35+
PrettyTables = "2.4.0"
36+
ProgressMeter = "1.10.2"
37+
SciMLBase = "≥0.0.1"
38+
StableRNGs = "1.0.2"
39+
StaticArrays = "≥0.0.1"
40+
StyledStrings = "≥0.0.1"
41+
ThreadPinning = "1.0.2"
42+
TimerOutputs = "≥0.0.1"
43+
UnicodePlots = "3.7.2"

docs/Project.toml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,37 @@ OrdinaryDiffEqTsit5 = "b1df2697-797e-41e3-8120-5422d3b24e4a"
2020
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
2121
Printf = "de0858da-6303-5e67-8744-51eddeeeb8d7"
2222
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
23-
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
2423
SciMLBase = "0bca4576-84f4-4d90-8ffe-ffa030f20462"
2524
SimpleWeightedGraphs = "47aef6b3-ad0c-573a-a1e2-d07658019622"
2625
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
2726
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
28-
StochasticDiffEq = "789caeaf-c7a9-5a7d-9973-96adeb23e2a0"
2927
StyledStrings = "f489334b-da3d-4c2e-b8f0-e476e12c162b"
3028
SymbolicIndexingInterface = "2efcf032-c050-4f8e-a9bb-153293bab1f5"
3129

3230
[sources]
3331
NetworkDynamics = {path = ".."}
32+
33+
[compat]
34+
CairoMakie = "0.13.1"
35+
DiffEqCallbacks = "4.2.2"
36+
Distributions = "0.25.117"
37+
Documenter = "1.8.0"
38+
DynamicQuantities = "1.4.0"
39+
GraphMakie = "0.5.13"
40+
Graphs = "≥0.0.1"
41+
LaTeXStrings = "1.4.0"
42+
LinearInterpolations = "0.1.4"
43+
Literate = "2.20.1"
44+
ModelingToolkit = "≥0.0.1"
45+
OrdinaryDiffEqNonlinearSolve = "1.3.0"
46+
OrdinaryDiffEqRosenbrock = "1.4.0"
47+
OrdinaryDiffEqTsit5 = "1.1.0"
48+
Plots = "1.40.9"
49+
Printf = "≥0.0.1"
50+
Random = "≥0.0.1"
51+
SciMLBase = "≥0.0.1"
52+
SimpleWeightedGraphs = "1.4.0"
53+
StableRNGs = "1.0.2"
54+
StaticArrays = "≥0.0.1"
55+
StyledStrings = "≥0.0.1"
56+
SymbolicIndexingInterface = "≥0.0.1"

test/AD_test.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,6 @@ test_differentiation(
5050
backends, # the backends you want to compare
5151
scenarios, # the scenarios you defined,
5252
correctness=true, # compares values against the reference
53-
type_stability=false, # checks type stability with JET.jl
53+
type_stability=:none, # checks type stability with JET.jl
5454
detailed=true, # prints a detailed test set
5555
)

test/Project.toml

Lines changed: 42 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,45 @@ TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"
4949
NetworkDynamics = {path = ".."}
5050

5151
[compat]
52-
DifferentiationInterface = "0.6"
53-
DifferentiationInterfaceTest = "0.7"
52+
Adapt = "≥0.0.1"
53+
Aqua = "0.8.9"
54+
CUDA = "≥0.0.1"
55+
CairoMakie = "0.13.1"
56+
Chairmarks = "1.3.1"
57+
DelimitedFiles = "1.9.1"
58+
DiffEqCallbacks = "4.1.0"
59+
DifferentiationInterface = "0.6.32"
60+
DifferentiationInterfaceTest = "0.9"
61+
DynamicQuantities = "1.4.0"
62+
ExplicitImports = "1.10.1"
63+
FiniteDiff = "2.26.2"
64+
ForwardDiff = "≥0.0.1"
65+
GraphMakie = "0.5.13"
66+
Graphs = "≥0.0.1"
67+
InteractiveUtils = "≥0.0.1"
68+
KernelAbstractions = "≥0.0.1"
69+
LinearAlgebra = "≥0.0.1"
70+
LinearInterpolations = "0.1.4"
71+
Logging = "1"
72+
ModelingToolkit = "≥0.0.1"
73+
OrderedCollections = "1.7.0"
74+
OrdinaryDiffEqNonlinearSolve = "1.3.0"
75+
OrdinaryDiffEqRosenbrock = "1.4.0"
76+
OrdinaryDiffEqSDIRK = "1.2.0"
77+
OrdinaryDiffEqTsit5 = "1.1.0"
78+
Pkg = "1"
79+
Plots = "1.40.9"
80+
Printf = "≥0.0.1"
81+
Random = "≥0.0.1"
82+
SafeTestsets = "0.1.0"
83+
SciMLBase = "≥0.0.1"
84+
SimpleWeightedGraphs = "1.4.0"
85+
SparseArrays = "≥0.0.1"
86+
StableRNGs = "1.0.2"
87+
Static = "≥0.0.1"
88+
StaticArrays = "≥0.0.1"
89+
SteadyStateDiffEq = "≥0.0.1"
90+
SymbolicIndexingInterface = "≥0.0.1"
91+
Symbolics = "≥0.0.1"
92+
Test = "1"
93+
TimerOutputs = "≥0.0.1"

0 commit comments

Comments
 (0)