Skip to content

Create benchmarks

Create benchmarks #17

Workflow file for this run

name: Benchmarks
on:
# TODO remove pull_request once it's consistent.
pull_request:
branches: ["*"]
schedule:
- cron: "0 5 * * WED" # Every Wed at 05:00
jobs:
run:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Julia
uses: julia-actions/setup-julia@v2
- uses: julia-actions/cache@v2
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: "pip"
- name: Setup optimizers
uses: ./.github/actions/setup_optimizers_linux
with:
GUROBI_WLS: ${{ secrets.GUROBI_WLS }}
COPT_LICENSE_KEY: ${{ secrets.COPT_LICENSE_KEY }}
COPT_LICENSE_DAT: ${{ secrets.COPT_LICENSE_DAT }}
CHECK_LICENSE: true
- name: Install dependencies
run: |
pip install -e .
cd benchmarks
pip install -e .
- name: Install Julia packages
run: |
julia --project=benchmarks -e 'using Pkg; Pkg.instantiate()'
- name: Run benchmarks
run: |
python benchmarks/test.py