Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ on:
branches: [master]
pull_request:
types: [opened, synchronize, reopened]
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
contents: read
jobs:
test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
Expand Down Expand Up @@ -35,3 +39,20 @@ jobs:
with:
file: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
benchmark:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- file: 'run_benchmarks.jl'
- file: 'run_benchmarks_jump.jl'
- file: 'run_benchmarks_pmedian.jl'
- file: 'run_benders_quantile_regression_benchmark.jl'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: '1'
- run: julia --project=benchmark -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
- run: julia --color=yes --project=benchmark benchmark/${{ matrix.file }}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ Manifest.toml
test/MOItests.jl
test/quadratic_tests.jl
*.json
*.txt
*.txt
1 change: 0 additions & 1 deletion benchmark/.gitignore

This file was deleted.

9 changes: 9 additions & 0 deletions benchmark/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,12 @@ ParameterJuMP = "774612a8-9878-5177-865a-ca53ae2495f9"
ParametricOptInterface = "0ce4ce61-57bf-432b-a095-efac525d185e"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
TimerOutputs = "a759f4b9-e2f1-59dc-863e-4aeb61b1ea8f"

[compat]
BenchmarkTools = "1"
HiGHS = "1"
JuMP = "1"
MathOptInterface = "1"
ParameterJuMP = "0.4"
Random = "1"
TimerOutputs = "0.5"
Loading