Files
mysqlclient/.github/workflows/tests.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