Skip to content

Commit c472f0d

Browse files
committed
added nightly ci
added comments
1 parent 029f1e6 commit c472f0d

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.github/workflows/acceptance.yml

+2
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,8 @@ jobs:
4545
- name: Run unit tests and generate test coverage report
4646
run: make test
4747

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
4850
- name: Run integration tests and generate test coverage report
4951
uses: databrickslabs/sandbox/acceptance@acceptance/v0.4.3
5052
with:

.github/workflows/docs-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
push:
55
tags:
66
- '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
88

99
jobs:
1010
build:

.github/workflows/nightly.yml

+57
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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

0 commit comments

Comments
 (0)