Skip to content

Commit 401ca82

Browse files
authored
Actions: Use installed mysql instead of docker. (#462)
1 parent 5385f51 commit 401ca82

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

.github/workflows/tests.yaml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,11 @@ jobs:
1010
strategy:
1111
matrix:
1212
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
13-
services:
14-
mysql:
15-
image: mysql:8.0
16-
ports:
17-
- 3306:3306
18-
env:
19-
MYSQL_DATABASE: mysqldb_test
20-
MYSQL_ROOT_PASSWORD: secretsecret
21-
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
2213
steps:
14+
- name: Start MySQL
15+
run: |
16+
sudo systemctl start mysql.service
17+
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
2318
- uses: actions/checkout@v2
2419
- name: Set up Python ${{ matrix.python-version }}
2520
uses: actions/setup-python@v2

tests/actions.cnf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@ host = 127.0.0.1
77
port = 3306
88
user = root
99
database = mysqldb_test
10-
password = secretsecret
10+
password = root
1111
default-character-set = utf8mb4

0 commit comments

Comments
 (0)