-
Notifications
You must be signed in to change notification settings - Fork 602
76 lines (67 loc) · 2.45 KB
/
tests.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
67
68
69
70
71
72
73
74
75
76
name: Tests
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
# Scheduled trigger on Monday at 2:47am UTC
schedule:
- cron: "47 2 * * 1"
concurrency:
group: unit-tests-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
if: github.event.pull_request.draft == false
uses: ./.github/workflows/interface-unit-tests.yml
secrets:
codecov_token: ${{ secrets.CODECOV_TOKEN }}
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
}}
upload-stable-deps:
needs: tests
uses: ./.github/workflows/check_in_artifact.yml
if: github.event_name == 'schedule'
with:
artifact_name_pattern: "frozen-*"
artifact_save_path: ".github/stable/"
pull_request_head_branch_name: bot/stable-deps-update
commit_message_description: Frozen Dependencies Update
pull_request_title: Update stable dependency files
pull_request_body: |
Automatic update of stable requirement files to snapshot valid python environments.
Because bots are not able to trigger CI on their own, please do so by pushing an empty commit to this branch using the following command:
```
git commit --allow-empty -m 'trigger ci'
```
# TODO: This will be added separately in a future PR
# upload-durations-files:
# needs: tests
# uses: ./.github/workflows/check_in_artifact.yml
# if: github.event_name == 'push'
# with:
# artifact_name_pattern: '*-durations.json'
# artifact_save_path: '.github/durations/'
# pull_request_head_branch_name: bot/durations-update
# commit_message_description: Durations Update
# pull_request_title: Update durations files
# pull_request_body: |
# Automatic update of durations files to snapshot valid python environments.
# Because bots are not able to trigger CI on their own, please do so by pushing an empty commit to this branch using the following command:
# ```
# git commit --allow-empty -m 'trigger ci'
# ```