Add benchmarks CI #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Benchmarks | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
concurrency: | |
group: benchmarks-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
# If needed, this workflow will create a cached benchmark reference. | |
# This reference will be used for comparative analyses with all PRs benchmarks. | |
reference_benchmarks: | |
if: >- | |
${{ | |
github.event_name == 'push' || | |
( | |
github.event_name == 'pull_request' && | |
contains(github.event.pull_request.labels.*.name, 'ci:run-benchmarks') | |
) | |
}} | |
uses: ./.github/workflows/interface-benchmarks.yml | |
with: | |
branch: add-pytest-benchmarks-CI | |
#branch: add-pytest-benchmarks | |
# Run a 'lightened' version of the CI on Pull Requests by default | |
# Unless the label `ci:run-full-test-suite` is attached to the PR. | |
# Always runs the full suite for push events. | |
run_lightened_ci: >- | |
${{ | |
github.event_name == 'pull_request' | |
&& !contains(github.event.pull_request.labels.*.name, 'ci:run-full-test-suite') | |
|| false | |
}} | |
skip_ci_test_jobs: torch-tests, autograd-tests, tf-tests, core-tests, all-interfaces-tests, external-libraries-tests, qcut-tests, qchem-tests, gradients-tests, data-tests | |
benchmarks: | |
if: >- | |
${{ | |
github.event_name == 'push' || | |
( | |
github.event_name == 'pull_request' && | |
contains(github.event.pull_request.labels.*.name, 'ci:run-benchmarks') | |
) | |
}} | |
uses: ./.github/workflows/interface-benchmarks.yml | |
needs: reference_benchmarks | |
with: | |
branch: ${{ github.ref }} | |
# Run a 'lightened' version of the CI on Pull Requests by default | |
# Unless the label `ci:run-full-test-suite` is attached to the PR. | |
# Always runs the full suite for push events. | |
run_lightened_ci: >- | |
${{ | |
github.event_name == 'pull_request' | |
&& !contains(github.event.pull_request.labels.*.name, 'ci:run-full-test-suite') | |
|| false | |
}} | |
skip_ci_test_jobs: torch-tests, autograd-tests, tf-tests, core-tests, all-interfaces-tests, external-libraries-tests, qcut-tests, qchem-tests, gradients-tests, data-tests | |