-
Notifications
You must be signed in to change notification settings - Fork 615
66 lines (58 loc) · 2.33 KB
/
benchmarks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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