Commit c472f0d 1 parent 029f1e6 commit c472f0d Copy full SHA for c472f0d
File tree 3 files changed +60
-1
lines changed
3 files changed +60
-1
lines changed Original file line number Diff line number Diff line change 45
45
- name : Run unit tests and generate test coverage report
46
46
run : make test
47
47
48
+ # Run tests from `tests/integration` as defined in .codegen.json
49
+ # and generate code coverage for `src` module as defined in tests/integration/.coveragerc
48
50
- name : Run integration tests and generate test coverage report
49
51
uses : databrickslabs/sandbox/acceptance@acceptance/v0.4.3
50
52
with :
Original file line number Diff line number Diff line change 4
4
push :
5
5
tags :
6
6
- ' v[0-9]+.[0-9]+.[0-9]+' # Must match semantic version tags like 'v1.2.3'
7
- workflow_dispatch : # Enables manual triggering of the workflow
7
+ workflow_dispatch : # Allows manual triggering of the workflow
8
8
9
9
jobs :
10
10
build :
Original file line number Diff line number Diff line change
1
+ name : nightly
2
+
3
+ on :
4
+ workflow_dispatch : # Allows manual triggering of the workflow
5
+ schedule :
6
+ - cron : ' 0 4 * * *' # Runs automatically at 4:00 AM UTC every day
7
+
8
+ permissions :
9
+ id-token : write
10
+ issues : write
11
+ contents : read
12
+ pull-requests : read
13
+
14
+ concurrency :
15
+ group : single-acceptance-job-per-repo
16
+
17
+ jobs :
18
+ integration :
19
+ environment : tool
20
+ runs-on : larger
21
+ steps :
22
+ - name : Checkout Code
23
+ uses : actions/checkout@v4
24
+ with :
25
+ fetch-depth : 0
26
+
27
+ - name : Install Python
28
+ uses : actions/setup-python@v5
29
+ with :
30
+ cache : ' pip'
31
+ cache-dependency-path : ' **/pyproject.toml'
32
+ python-version : ' 3.10'
33
+
34
+ - name : Install hatch
35
+ run : pip install hatch==1.9.4
36
+
37
+ - name : Run unit tests and generate test coverage report
38
+ run : make test
39
+
40
+ # Run tests from `tests/integration` as defined in .codegen.json
41
+ # and generate code coverage for `src` module as defined in tests/integration/.coveragerc
42
+ - name : Run integration tests and generate test coverage report
43
+ uses : databrickslabs/sandbox/acceptance@acceptance/v0.4.3
44
+ with :
45
+ vault_uri : ${{ secrets.VAULT_URI }}
46
+ timeout : 2h
47
+ create_issues : true
48
+ env :
49
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
50
+ ARM_CLIENT_ID : ${{ secrets.ARM_CLIENT_ID }}
51
+ ARM_TENANT_ID : ${{ secrets.ARM_TENANT_ID }}
52
+
53
+ # collects all coverage reports: coverage.xml from integration tests, coverage-unit.xml from unit tests
54
+ - name : Publish test coverage
55
+ uses : codecov/codecov-action@v5
56
+ with :
57
+ use_oidc : true
You can’t perform that action at this time.
0 commit comments