-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (58 loc) · 1.62 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
name: Tests
on:
push:
branches:
- main
pull_request:
paths-ignore:
- "docs/**"
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.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Linting - Run pre-commit checks
uses: pre-commit/[email protected]
test:
name: pytest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
environment:
- py310
- py311
- py312
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- name: Setup Pixi
uses: prefix-dev/[email protected]
with:
environments: ${{ matrix.environment }}
- name: Start Docker Compose
uses: isbang/compose-action@e5813a5909aca4ae36058edae58f6e52b9c971f8
with:
compose-file: docker-compose.yaml
- name: Install Microsoft ODBC
run: sudo ACCEPT_EULA=Y apt-get install -y msodbcsql18
- name: Wait for Docker Servers
run: |
until bash ./.github/scripts/docker_compose_ready.sh; do
sleep 1
done
- name: Run tests
env:
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
run: |
pixi run -e ${{ matrix.environment }} pytest tests -ra ${RUNNER_DEBUG:+-v} --color=yes --postgres --mssql