Skip to content

Add handling for backend error #86

Add handling for backend error

Add handling for backend error #86

Workflow file for this run

name: CI
on:
push:
branches:
- master
tags:
- "*"
paths:
- "**.py"
- "poetry.lock"
- "!ratelimit/__version__.py"
pull_request:
branches:
- master
paths:
- "**.py"
- "poetry.lock"
- "!ratelimit/__version__.py"
jobs:
Linux-Test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", 3.11]
redis-version: [4, 5, 6, 7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip poetry
poetry config virtualenvs.create false --local
poetry install -E full
- name: Start Redis
uses: supercharge/redis-github-action@1.1.0
with:
redis-version: ${{ matrix.redis-version }}
- name: Check format
run: |
black --check --diff .
isort --check .
flake8 .
- name: Test with pytest
run: |
coverage run -m pytest --log-cli-level=DEBUG
coverage report --fail-under=100