Skip to content

'<3.0.0' is removed and dependency problem is resolved (#433) #41

'<3.0.0' is removed and dependency problem is resolved (#433)

'<3.0.0' is removed and dependency problem is resolved (#433) #41

Workflow file for this run

name: Tests
on: [push]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
services:
mysql:
image: mysql:5.7
env:
MYSQL_ROOT_PASSWORD: user_pass
MYSQL_DATABASE: tanner_db
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
redis:
image: redis
ports:
- 6379:6379
options: --entrypoint redis-server
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install black pytest coveralls
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with black
run: |
black --line-length 120 .
- name: Test with pytest
run: |
python setup.py install
docker pull busybox:latest
pytest