1
1
---
2
- name : Test Suite
2
+ name : Test Suite
3
3
4
- on :
5
- push :
6
- branches : ["master"]
7
- pull_request :
8
- branches : ["master"]
4
+ on :
5
+ push :
6
+ branches : ["master"]
7
+ pull_request :
8
+ branches : ["master"]
9
9
10
- jobs :
11
- tests :
12
- name : " Python ${{ matrix.python-version }}"
13
- runs-on : " ubuntu-latest"
10
+ jobs :
11
+ tests :
12
+ name : " Python ${{ matrix.python-version }}"
13
+ runs-on : " ubuntu-latest"
14
14
15
- strategy :
16
- matrix :
17
- python-version : ["3.8", "3.9", "3.10", "3.11"]
15
+ strategy :
16
+ matrix :
17
+ python-version : ["3.7", "3.8", "3.9", "3.10", "3.11"]
18
18
19
- services :
20
- mysql :
21
- image : mysql:5.7
22
- env :
23
- MYSQL_USER : username
24
- MYSQL_PASSWORD : password
25
- MYSQL_ROOT_PASSWORD : password
26
- MYSQL_DATABASE : testsuite
27
- ports :
28
- - 3306:3306
29
- options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
19
+ services :
20
+ mysql :
21
+ image : mysql:5.7
22
+ env :
23
+ MYSQL_USER : username
24
+ MYSQL_PASSWORD : password
25
+ MYSQL_ROOT_PASSWORD : password
26
+ MYSQL_DATABASE : testsuite
27
+ ports :
28
+ - 3306:3306
29
+ options : --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
30
30
31
- postgres :
32
- image : postgres:14
33
- env :
34
- POSTGRES_USER : username
35
- POSTGRES_PASSWORD : password
36
- POSTGRES_DB : testsuite
37
- ports :
38
- - 5432:5432
39
- options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
31
+ postgres :
32
+ image : postgres:14
33
+ env :
34
+ POSTGRES_USER : username
35
+ POSTGRES_PASSWORD : password
36
+ POSTGRES_DB : testsuite
37
+ ports :
38
+ - 5432:5432
39
+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
40
40
41
- steps :
42
- - uses : " actions/checkout@v3"
43
- - uses : " actions/setup-python@v4"
44
- with :
45
- python-version : " ${{ matrix.python-version }}"
46
- - name : " Install dependencies"
47
- run : " scripts/install"
48
- - name : " Run linting checks"
49
- run : " scripts/check"
50
- - name : " Build package & docs"
51
- run : " scripts/build"
52
- - name : " Run tests"
53
- env :
54
- TEST_DATABASE_URLS : |
55
- sqlite:///testsuite,
56
- sqlite+aiosqlite:///testsuite,
57
- mysql://username:password@localhost:3306/testsuite,
58
- mysql+aiomysql://username:password@localhost:3306/testsuite,
59
- mysql+asyncmy://username:password@localhost:3306/testsuite,
60
- postgresql://username:password@localhost:5432/testsuite,
61
- postgresql+aiopg://username:[email protected] :5432/testsuite,
62
- postgresql+asyncpg://username:password@localhost:5432/testsuite
63
- run : " scripts/test"
41
+ steps :
42
+ - uses : " actions/checkout@v3"
43
+ - uses : " actions/setup-python@v4"
44
+ with :
45
+ python-version : " ${{ matrix.python-version }}"
46
+ - name : " Install dependencies"
47
+ run : " scripts/install"
48
+ - name : " Run linting checks"
49
+ run : " scripts/check"
50
+ - name : " Build package & docs"
51
+ run : " scripts/build"
52
+ - name : " Run tests"
53
+ env :
54
+ TEST_DATABASE_URLS : |
55
+ sqlite:///testsuite,
56
+ sqlite+aiosqlite:///testsuite,
57
+ mysql://username:password@localhost:3306/testsuite,
58
+ mysql+aiomysql://username:password@localhost:3306/testsuite,
59
+ mysql+asyncmy://username:password@localhost:3306/testsuite,
60
+ postgresql://username:password@localhost:5432/testsuite,
61
+ postgresql+aiopg://username:[email protected] :5432/testsuite,
62
+ postgresql+asyncpg://username:password@localhost:5432/testsuite
63
+ run : " scripts/test"
0 commit comments