This repository was archived by the owner on Feb 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
67 lines (62 loc) · 2.34 KB
/
Copy pathintegration-tests.yml
File metadata and controls
67 lines (62 loc) · 2.34 KB
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
name: Integration Tests
on: [ push ]
jobs:
test-job:
runs-on: ubuntu-latest
container: python:3.8
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
ports:
- "5432:5432"
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
mariadb:
image: mariadb:10.1
env:
MYSQL_ROOT_PASSWORD: password
MYSQL_DATABASE: test
ports:
- "3306:3306"
options: >-
--health-cmd "mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install -r requirements_dev.txt
pip install .
- name: Run tests with pytest
run: |
export CLIDE_DB_HOST=postgres
export CLIMSOFT_DB_HOST=mariadb
export MCH_DB_HOST=mariadb
export MIDAS_PG_DB_HOST=postgres
pytest tests/integration/models/test_clide.py
sleep 3
pytest tests/integration/models/test_climsoft.py
sleep 3
pytest tests/integration/models/test_mch_english.py
sleep 3
pytest tests/integration/models/test_midas_pg.py
sleep 3
pytest tests/integration/providers/test_clide.py
sleep 3
pytest tests/integration/providers/test_climsoft.py
sleep 3
pytest tests/integration/providers/test_mch_english.py
sleep 3
pytest tests/integration/providers/test_midas_pg.py
sleep 3
pytest tests/integration/providers/test_opencdms.py
sleep 3