forked from transferwise/pipelinewise-tap-mysql
-
Notifications
You must be signed in to change notification settings - Fork 0
105 lines (83 loc) · 2.54 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
name: CI
on:
pull_request:
push:
branches:
- master
- main
jobs:
lint_and_test:
name: Linting and Testing
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ 3.11, 3.12 ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup virtual environment
run: make venv
# - name: Pylinting
# run: make pylint
- name: Unit Tests
run: make unit_test
integration_test_mariadb:
name: Intergation tests with MariaDB database
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ 3.11, 3.12 ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build db test container
run: docker compose up -d mariadb_server1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup virtual environment
run: make venv
- name: Integration Tests
env:
TAP_MYSQL_PORT: 3306
TAP_MYSQL_USER: replication_user
TAP_MYSQL_PASSWORD: secret123passwd
TAP_MYSQL_HOST: localhost
TAP_MYSQL_ENGINE: mariadb
LOGGING_CONF_FILE: ./sample_logging.conf
run: make integration_test
- name: Shutdown db test container
run: docker compose down mariadb_server1
integration_test_mysql:
name: Intergation tests with Mysql database
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: [ 3.11, 3.12 ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Build db test container
run: docker compose up -d mysql_server
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Setup virtual environment
run: make venv
- name: Integration Tests
env:
TAP_MYSQL_PORT: 3307
TAP_MYSQL_USER: replication_user
TAP_MYSQL_PASSWORD: secret123passwd
TAP_MYSQL_HOST: localhost
TAP_MYSQL_ENGINE: mysql
LOGGING_CONF_FILE: ./sample_logging.conf
run: make integration_test
- name: Shutdown db test container
run: docker compose down mysql_server