-
Notifications
You must be signed in to change notification settings - Fork 28
122 lines (98 loc) · 3.15 KB
/
ci.yaml
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
name: CI
on:
push:
branches-ignore:
- 'master'
pull_request:
branches-ignore:
- 'master'
schedule:
# “At 00:00 on every 7th day-of-month from 1 through 31.” (https://crontab.guru)
- cron: "0 0 1/7 * *"
jobs:
docs:
runs-on: ubuntu-latest
name: Build Documentation
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
with:
python-version: 3.9
- name: Build Documentation
run: |
poetry run python -m nox -s build-docs
checks:
runs-on: ubuntu-latest
name: Project Checks (Python-${{ matrix.python }})
strategy:
fail-fast: false
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
steps:
- name: Fetch sqlalchemy_exasol code from repository
uses: actions/checkout@v3
- name: Install via apt
run: sudo apt-get install unixodbc unixodbc-dev libboost-date-time-dev libboost-locale-dev libboost-system-dev
- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
with:
python-version: ${{ matrix.python }}
- name: Project Checks (Python-${{ matrix.python }})
run: poetry run nox -s check
tests:
runs-on: ubuntu-latest
needs: [docs, checks]
strategy:
fail-fast: false
matrix:
python:
- "3.8"
- "3.9"
- "3.10"
connector:
- pyodbc
- turbodbc
- websocket
exasol_version:
- 7.1.17
- 7.0.20
name: Integration Tests (Python-${{ matrix.python }}, Connector-${{ matrix.connector }}, Exasol-${{ matrix.exasol_version }})
steps:
- name: Fetch sqlalchemy_exasol code from repository
uses: actions/checkout@v3
- name: Install via apt
run: sudo apt-get install unixodbc unixodbc-dev libboost-date-time-dev libboost-locale-dev libboost-system-dev
- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
with:
python-version: ${{ matrix.python }}
- name: Install python project dependencies including trubodbc
run: poetry install --extras "turbodbc"
if: ${{ matrix.connector == 'turbodbc' }}
- name: Run Test for Python ${{ matrix.python }} using ${{ matrix.connector }}
run: |
poetry run nox -s unit-tests
poetry run nox -s integration-tests -- -- --connector ${{ matrix.connector }} --db-version ${{ matrix.exasol_version }}
build_package:
runs-on: ubuntu-latest
name: Build Package
needs: tests
strategy:
matrix:
python: [ 3.8 ]
steps:
- name: Fetch sqlalchemy_exasol code from repository
uses: actions/checkout@v3
- name: Fetch all tags
run: git fetch origin +refs/tags/*:refs/tags/*
- name: Setup Python & Poetry Environment
uses: ./.github/actions/python-environment
with:
python-version: ${{ matrix.python }}
- name: Build sdist and wheel packages
run: poetry build