-
Notifications
You must be signed in to change notification settings - Fork 3
68 lines (57 loc) · 1.54 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:
paths-ignore:
- 'docs/**'
branches:
- '**'
pull_request:
paths-ignore:
- 'docs/**'
branches:
- '**'
jobs:
Linting:
name: "Linting - pre-commit hooks - Python 3.9"
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- name: Checkout branch
uses: actions/checkout@v3
- name: Install Python 3.9
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Linting - Run pre-commit checks
uses: pre-commit/[email protected]
Tests:
name: "${{ matrix.os }} / ${{ matrix.python-version }}"
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Ubuntu]
python-version: ['3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
- name: Setup Environment
uses: ./.github/actions/setup
with:
python-version: ${{ matrix.python-version }}
poetry-flags: --all-extras --with=tests
- name: Start Docker Compose
uses: isbang/[email protected]
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
timeout-minutes: 1
shell: bash
run: |
until bash ./.github/workflows/resources/docker_compose_ready.sh; do
sleep 2
done
- name: Run Tests
uses: ./.github/actions/test
with:
arguments: --postgres --mssql