-
Notifications
You must be signed in to change notification settings - Fork 7
55 lines (45 loc) · 1.17 KB
/
test.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
name: Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
db2:
image: ibmcom/db2:11.5.7.0
ports:
- 50000:50000
env:
LICENSE: accept
DB2INSTANCE: db2inst1
DB2INST1_PASSWORD: ibm123
DBNAME: testdb
BLU: false
ENABLE_ORACLE_COMPATIBILITY: false
UPDATEAVAIL: NO
TO_CREATE_SAMPLEDB: false
REPODB: false
IS_OSXFS: false
PERSISTENT_HOME: false
HADR_ENABLED: false
options: >-
--cap-add IPC_LOCK
--cap-add IPC_OWNER
--name="db2inst1"
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
curl -sSL https://install.python-poetry.org | python3
poetry install
- name: Wait for DB2
run: |
docker logs -f "${{ job.services.db2.id }}" 2>&1 | grep -m 1 '(*) Setup has completed.'
- name: Run tests
run: poetry run tox --parallel 2
- name: Build wheels
run: poetry build