-
Notifications
You must be signed in to change notification settings - Fork 466
65 lines (61 loc) · 1.78 KB
/
Copy pathdb2.yaml
File metadata and controls
65 lines (61 loc) · 1.78 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: db2
on:
push:
branches:
- main
paths:
- 'sqlmesh/core/engine_adapter/db2.py'
- 'tests/core/engine_adapter/test_db2.py'
- 'tests/core/engine_adapter/integration/test_integration_db2.py'
- 'tests/core/engine_adapter/integration/docker/compose.db2.yaml'
- '.github/workflows/db2.yaml'
- 'pyproject.toml'
pull_request:
branches:
- main
paths:
- 'sqlmesh/core/engine_adapter/db2.py'
- 'tests/core/engine_adapter/test_db2.py'
- 'tests/core/engine_adapter/integration/test_integration_db2.py'
- 'tests/core/engine_adapter/integration/docker/compose.db2.yaml'
- '.github/workflows/db2.yaml'
- 'pyproject.toml'
concurrency:
group: db2-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: true
permissions:
contents: read
jobs:
db2-test:
runs-on: ubuntu-latest
timeout-minutes: 25
env:
PYTEST_XDIST_AUTO_NUM_WORKERS: 2
SQLMESH__DISABLE_ANONYMIZED_ANALYTICS: '1'
UV: '1'
steps:
- uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.12'
- name: Install uv
uses: astral-sh/setup-uv@v7
- name: Install SQLMesh dev dependencies
run: |
uv venv .venv
source .venv/bin/activate
make install-dev
- name: Install OS-level dependencies
run: ./.github/scripts/install-prerequisites.sh "db2"
- name: Run tests
run: |
source .venv/bin/activate
make db2-test
- name: Upload test results
uses: actions/upload-artifact@v7
if: ${{ !cancelled() }}
with:
name: test-results-docker-db2
path: test-results/
retention-days: 7