Skip to content

Commit

Permalink
ci: extend checks with ruff, mypy and coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
vdmit11 committed Mar 19, 2024
1 parent 2c05dc1 commit ac7dcc2
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: build

on: [push]

env:
SRC_DIRS: "contextvars_registry tests docs"

jobs:
tests:
runs-on: ubuntu-latest
Expand All @@ -20,6 +23,12 @@ jobs:
- name: Install Python packages
run: |
poetry install --no-root
- name: Run tests
- name: ruff
run: |
poetry run ruff check $SRC_DIRS
- name: mypy
run: |
poetry run mypy SRC_DIRS
- name: pytest
run: |
poetry run pytest
poetry run pytest -vv --cov=contextvars_registry --cov-fail-under=100 $SRC_DIRS

0 comments on commit ac7dcc2

Please sign in to comment.