Skip to content

ci: extend checks with ruff, mypy and coverage #67

ci: extend checks with ruff, mypy and coverage

ci: extend checks with ruff, mypy and coverage #67

Workflow file for this run

name: build
on: [push]
env:
SRC_DIRS: "contextvars_registry tests docs"
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.8', '3.12' ]
name: run tests on Python v${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Setup Poetry
uses: abatilo/actions-poetry@v2
- name: Install Python packages
run: |
poetry install --no-root
- name: ruff
run: |
poetry run ruff check $SRC_DIRS
- name: mypy
run: |
poetry run mypy SRC_DIRS
- name: pytest
run: |
poetry run pytest -vv --cov=contextvars_registry --cov-fail-under=100 $SRC_DIRS