File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Test
2
+
3
+ on :
4
+ push :
5
+ pull_request :
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-20.04
10
+ strategy :
11
+ matrix :
12
+ include :
13
+ - db : " mariadb:10.2"
14
+ py : " 3.9"
15
+ - db : " mariadb:10.3"
16
+ py : " 3.8"
17
+ - db : " mariadb:10.5"
18
+ py : " 3.7"
19
+ - db : " mysql:5.6"
20
+ py : " 3.6"
21
+ - db : " mysql:5.7"
22
+ py : " pypy-3.6"
23
+ - db : " mysql:8.0"
24
+ py : " 3.9"
25
+
26
+ services :
27
+ mysql :
28
+ image : " ${{ matrix.db }}"
29
+ ports :
30
+ - 3306:3306
31
+ env :
32
+ MYSQL_ALLOW_EMPTY_PASSWORD : yes
33
+ options : " --name=mysqld"
34
+
35
+ steps :
36
+ - uses : actions/checkout@v2
37
+ - name : Set up Python ${{ matrix.py }}
38
+ uses : actions/setup-python@v2
39
+ with :
40
+ python-version : ${{ matrix.py }}
41
+ - name : Set up MySQL
42
+ run : |
43
+ sleep 10
44
+ mysql -h 127.0.0.1 -uroot -e "select version()"
45
+ mysql -h 127.0.0.1 -uroot -e "SET GLOBAL local_infile=on"
46
+ mysql -h 127.0.0.1 -uroot -e 'create database test1 DEFAULT CHARACTER SET utf8mb4'
47
+ mysql -h 127.0.0.1 -uroot -e 'create database test2 DEFAULT CHARACTER SET utf8mb4'
48
+ mysql -h 127.0.0.1 -uroot -e "create user test2 identified ${WITH_PLUGIN} by 'some password'; grant all on test2.* to test2;"
49
+ mysql -h 127.0.0.1 -uroot -e "create user test2@localhost identified ${WITH_PLUGIN} by 'some password'; grant all on test2.* to test2@localhost;"
50
+ cp .travis/docker.json pymysql/tests/databases.json
51
+ - name : Run test
52
+ run : |
53
+ pip install -U cryptography PyNaCl pytest pytest-cov mock
54
+ pytest -v --cov --cov-config .coveragerc pymysql
You can’t perform that action at this time.
0 commit comments