mirror of
https://github.com/ANL-CEEESA/UnitCommitment.jl.git
synced 2025-12-06 00:08:52 -06:00
GitHub Actions: Only run benchmarks on demand
This commit is contained in:
13
.github/workflows/benchmark.yml
vendored
13
.github/workflows/benchmark.yml
vendored
@@ -1,14 +1,9 @@
|
|||||||
name: Benchmark
|
name: Benchmark
|
||||||
on:
|
on: push
|
||||||
push:
|
|
||||||
paths-ignore:
|
|
||||||
- '**.csv'
|
|
||||||
- '**.md'
|
|
||||||
- '.git*'
|
|
||||||
- 'test/**'
|
|
||||||
jobs:
|
jobs:
|
||||||
benchmark:
|
benchmark:
|
||||||
runs-on: [self-hosted, benchmark]
|
runs-on: [self-hosted, benchmark]
|
||||||
|
if: "contains(github.event.head_commit.message, '[benchmark]')"
|
||||||
timeout-minutes: 10080
|
timeout-minutes: 10080
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
@@ -23,11 +18,11 @@ jobs:
|
|||||||
- name: Upload logs
|
- name: Upload logs
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: logs
|
name: Logs
|
||||||
path: benchmark/results/*
|
path: benchmark/results/*
|
||||||
- name: Upload tables & charts
|
- name: Upload tables & charts
|
||||||
uses: actions/upload-artifact@v2
|
uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: tables
|
name: Tables
|
||||||
path: benchmark/tables/*
|
path: benchmark/tables/*
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user