-
Notifications
You must be signed in to change notification settings - Fork 8
45 lines (37 loc) · 1.34 KB
/
smoke.yml
File metadata and controls
45 lines (37 loc) · 1.34 KB
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
name: Smoke Tests
on:
workflow_dispatch:
schedule:
# Run at 05:00 UTC every day
- cron: '0 5 * * *'
env:
PYTHON_VERSION: 3.13
jobs:
smoke-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up cache
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('uv.lock') }}
- run: uv sync --all-extras
- name: Run smoke tests
env:
CDF_CLUSTER: ${{ vars.CDF_CLUSTER }}
CDF_PROJECT: ${{ vars.CDF_PROJECT }}
IDP_CLIENT_ID: ${{ vars.IDP_CLIENT_ID }}
IDP_CLIENT_SECRET: ${{ secrets.IDP_CLIENT_SECRET }}
IDP_TENANT_ID: ${{ vars.IDP_TENANT_ID }}
run: export PYTHONPATH=$PYTHONPATH:$(pwd); uv run pytest tests_smoke --json-report --json-report-file=smoke-report.json --tb=short
continue-on-error: true
- name: Check smoke test results and send Slack notification
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
GITHUB_REPO_URL: ${{ github.server_url }}/${{ github.repository }}
run: uv run python scripts/check_smoke_results.py smoke-report.json