Actions: Use installed mysql instead of docker. (#462)

This commit is contained in:
Inada Naoki
2020-12-11 12:30:08 +09:00
committed by GitHub
parent 5385f5187a
commit 401ca82974
2 changed files with 5 additions and 10 deletions

View File

@@ -10,16 +10,11 @@ jobs:
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
services:
mysql:
image: mysql:8.0
ports:
- 3306:3306
env:
MYSQL_DATABASE: mysqldb_test
MYSQL_ROOT_PASSWORD: secretsecret
options: --health-cmd "mysqladmin ping -h localhost" --health-interval 20s --health-timeout 10s --health-retries 10
steps:
- name: Start MySQL
run: |
sudo systemctl start mysql.service
mysql -uroot -proot -e "CREATE DATABASE mysqldb_test"
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2

View File

@@ -7,5 +7,5 @@ host = 127.0.0.1
port = 3306
user = root
database = mysqldb_test
password = secretsecret
password = root
default-character-set = utf8mb4