Skip to content

Add ruff

Add ruff #187

Workflow file for this run

name: Test package
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9]
steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@master
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_ci.txt
- name: Test with ruff
run: |
ruff check .
ruff format --diff .
- name: Test with mypy
run: mypy -m aiohttp_retry
- name: Test with pytest
env:
PYTHONPATH: .
run: pytest --cov=./ --cov-report=xml --asyncio-mode=auto
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
flags: pytest
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true
verbose: true