This repository has been archived by the owner on Nov 5, 2024. It is now read-only.
Refine README for developer; Remove support for py37, py2k #33
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
lint: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v1 | |
- uses: docker://hawkingrei/tind:v5.1.1 | |
name: __all__ | |
with: | |
args: | | |
bash -c "pwd && ls && cat /etc/os-release && tox -e lint" | |
tests: | |
strategy: | |
fail-fast: true | |
matrix: | |
python-version: | |
- 'py38' | |
- 'py39' | |
- 'py310' | |
tidb-version: | |
- 'v7.1.0' | |
- 'v6.5.3' | |
- 'v6.1.7' | |
- 'v5.4.3' | |
- 'v5.3.4' | |
- 'v5.2.4' | |
- 'v5.1.5' | |
- 'v4.0.15' | |
name: test_${{ matrix.python-version }}_tidb_${{ matrix.tidb-version }} | |
runs-on: ubuntu-latest | |
container: | |
image: wangdi4zm/tind:${{ matrix.tidb-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: start tidb | |
run: service supervisor start && sleep 20s | |
- name: get tidb version | |
run: mycli -P 4000 -h 127.0.0.1 -u root --execute='select tidb_version();' | |
- name: init db | |
run: mycli -P 4000 -h 127.0.0.1 -u root --execute='create database test_sqlalchemy;create database test_schema;' | |
- name: run test | |
run: tox -e ${{ matrix.python-version }} |