mirror of
https://github.com/PyMySQL/mysqlclient.git
synced 2026-03-13 08:00:02 +08:00
32 lines
784 B
YAML
32 lines
784 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.5, 3.6, 3.7, 3.8, 3.9]
|
|
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
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Run tests
|
|
env:
|
|
TESTDB: actions.cnf
|
|
run: |
|
|
pip install -U pip
|
|
pip install -U mock coverage pytest pytest-cov
|
|
pip install .
|
|
pytest --cov ./MySQLdb
|
|
- uses: codecov/codecov-action@v1
|