-
Notifications
You must be signed in to change notification settings - Fork 3
78 lines (73 loc) · 1.83 KB
/
ci.workflow.yaml
File metadata and controls
78 lines (73 loc) · 1.83 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
66
67
68
69
70
71
72
73
74
75
76
77
78
name: CI
on:
pull_request:
types:
- opened
- synchronize
jobs:
style:
name: Style
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: "read"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-style
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Base
uses: ./.github/actions/setup-base
- name: Check style
run: make style
unit-tests:
name: Unit tests
runs-on: ubuntu-latest
needs: style
timeout-minutes: 30
permissions:
contents: "read"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-unit-tests-${{ matrix.python_version }}
cancel-in-progress: true
strategy:
matrix:
python_version:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
- '3.13'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Base
uses: ./.github/actions/setup-base
with:
python-version: ${{ matrix.python_version }}
- name: Run Unit Tests
run: make test
integration-tests:
name: Integration Tests
runs-on: ubuntu-latest
needs: style
timeout-minutes: 30
permissions:
contents: "read"
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}-integration-tests
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Base
uses: ./.github/actions/setup-base
- name: Checkout upstream SQLMesh
uses: actions/checkout@v4
with:
repository: TobikoData/sqlmesh
ref: refs/heads/main
path: _sqlmesh_upstream
- name: Run Integration Tests
run: make integration-test