mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
Actions: Use installed mysql instead of docker. (#462)
This commit is contained in:
13
.github/workflows/tests.yaml
vendored
13
.github/workflows/tests.yaml
vendored
@@ -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
|
||||
|
||||
@@ -7,5 +7,5 @@ host = 127.0.0.1
|
||||
port = 3306
|
||||
user = root
|
||||
database = mysqldb_test
|
||||
password = secretsecret
|
||||
password = root
|
||||
default-character-set = utf8mb4
|
||||
|
||||
Reference in New Issue
Block a user