-
Notifications
You must be signed in to change notification settings - Fork 3
194 lines (180 loc) · 4.43 KB
/
tests.yml
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
name: Tests
on:
push:
paths-ignore:
- 'docs/**'
branches:
- main
pull_request:
paths-ignore:
- 'docs/**'
branches:
- '**'
# Automatically stop old builds on the same branch/PR
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}
cancel-in-progress: true
jobs:
lint:
name: Pre-commit Checks
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout branch
uses: actions/checkout@v4
- name: Install Python 3.9
uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Linting - Run pre-commit checks
uses: pre-commit/[email protected]
smoke_test:
name: Smoke Test
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py312
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
postgres
zoo
postgres_test:
name: Postgres Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py39all
- py310all
- py311all
- py312all
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
postgres
zoo
pytest-arguments: --polars --ibis --pdtransform
duckdb_test:
name: DuckDB Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py39all
- py312all
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
zoo
pytest-arguments: --duckdb -m duckdb --polars --ibis --pdtransform --no-postgres
db2_test:
name: DB2 Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py39ibm
- py312ibm
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
zoo
ibm_db2
# --polars and --ibis not supported
pytest-arguments: --ibm_db2 -m ibm_db2 --pdtransform --no-postgres
mssql_test:
name: MSSql Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py39all
- py311all
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
mssql
zoo
pytest-arguments: --mssql -m mssql --polars --ibis --pdtransform --no-postgres
orchestration_test:
name: Orchestration Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py311all
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
postgres
zoo
pytest-arguments: --dask --prefect -m "dask or prefect"
pandas1_sqlalchemy1_test:
name: Pandas 1.x and SQLAlchemy 1.x Tests
needs: [smoke_test]
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py39pdsa1all
- py311pdsa1all
uses: ./.github/workflows/test.yml
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
docker-services: |
postgres
zoo
pytest-arguments: --polars --ibis --pdtransform
snowflake_test:
name: Snowflake Tests
needs: [smoke_test]
# snowflake tests are currently not passing
# TODO: investigate and fix
if: false
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py311pdsa1all
uses: ./.github/workflows/test.yml
secrets:
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
with:
os: ${{ matrix.os }}
environment: ${{ matrix.environment }}
workers: 1 # tests are often waiting on snowflake
timeout-minutes: 40
docker-services: |
postgres
zoo
pytest-arguments: --polars --ibis --pdtransform --snowflake --no-postgres