Skip to content

Commit 0af5a3d

Browse files
Merge pull request #3704 from AayushSabharwal/as/fix-benchmarks
ci: fix benchmark script
2 parents f807dbc + 70902a6 commit 0af5a3d

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

.github/workflows/Downstream.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
paths-ignore:
88
- 'docs/**'
9+
- 'benchmark/**'
910

1011
concurrency:
1112
# Skip intermediate builds: always, but for the master branch and tags.

.github/workflows/ReleaseTest.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
pull_request:
77
paths-ignore:
88
- 'docs/**'
9+
- 'benchmark/**'
910

1011
concurrency:
1112
# Skip intermediate builds: always, but for the master branch and tags.

.github/workflows/Tests.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ on:
1313
- master
1414
paths-ignore:
1515
- 'docs/**'
16+
- 'benchmark/**'
1617

1718
concurrency:
1819
# Skip intermediate builds: always, but for the master branch.

.github/workflows/benchmark.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,3 +22,5 @@ jobs:
2222
- uses: MilesCranmer/AirspeedVelocity.jl@action-v1
2323
with:
2424
julia-version: "${{ matrix.version }}"
25+
script: "benchmark/benchmarks.jl"
26+
extra-pkgs: "ModelingToolkitStandardLibrary,OrdinaryDiffEqDefault"

benchmark/Project.toml

Lines changed: 0 additions & 3 deletions
This file was deleted.

benchmark/benchmarks.jl

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
using ModelingToolkit, BenchmarkTools
22
using ModelingToolkitStandardLibrary
3-
using ModelingToolkitStandardLibrary.Thermal
3+
using ModelingToolkitStandardLibrary.Electrical
4+
using ModelingToolkitStandardLibrary.Mechanical.Rotational
5+
using ModelingToolkitStandardLibrary.Blocks
46
using OrdinaryDiffEqDefault
57

68
const SUITE = BenchmarkGroup()
@@ -51,4 +53,4 @@ tspan = (0.0, 6.0)
5153
SUITE["ODEProblem"] = @benchmarkable ODEProblem($model, $u0, $tspan)
5254

5355
prob = ODEProblem(model, u0, tspan)
54-
SUITE["init"] = init($prob)
56+
SUITE["init"] = @benchmarkable init($prob)

0 commit comments

Comments
 (0)