-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (35 loc) · 1.34 KB
/
Copy pathpython-live-tests.yml
File metadata and controls
42 lines (35 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
name: Python Live Tests
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened, labeled]
jobs:
live-tests:
if: github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'run-live-python-tests')
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Install dependencies
working-directory: packages/python-sdk
run: uv sync --all-extras
- name: Run live command matrix tests
working-directory: packages/python-sdk
env:
SCHEMAX_RUN_LIVE_COMMAND_TESTS: '1'
SCHEMAX_RUN_LIVE_IMPORT_TESTS: '1'
DATABRICKS_PROFILE: ${{ secrets.DATABRICKS_PROFILE }}
DATABRICKS_WAREHOUSE_ID: ${{ secrets.DATABRICKS_WAREHOUSE_ID }}
DATABRICKS_MANAGED_LOCATION: ${{ secrets.DATABRICKS_MANAGED_LOCATION }}
SCHEMAX_LIVE_RESOURCE_PREFIX: schemax_live_ci
SCHEMAX_LIVE_TEST_TIMEOUT_SECONDS: '300'
run: |
uv run pytest tests/integration/test_live_command_matrix.py -v
uv run pytest tests/integration/test_import_live_databricks.py -v