Skip to content

Update README.md

Update README.md #94

Workflow file for this run

name: tests
on: [push]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install poetry
poetry --version
poetry install
- name: Run MyPy
run: |
poetry run mypy app/
- name: Run flake8
run: |
poetry run flake8 app/
- uses: shogo82148/actions-setup-redis@v1
with:
redis-version: 'latest'
- run: redis-cli ping
- name: Run tests
run: |
echo 'telegram_token=${{ secrets.TELEGRAM_TEST_TOKEN }}' > .env
poetry run pytest -ra -v --cov=app