diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62babea..5a81e99 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,11 +25,20 @@ jobs: python -m pip install --upgrade pip pip install .[dev] - name: Lint with Black + id: black + continue-on-error: true run: | black --check matrix/ tests/ examples/ - name: Check typing with mypy + id: mypy + continue-on-error: true run: | mypy matrix - name: Test with pytest + id: pytest + continue-on-error: true run: | - pytest -v + pytest -v --cov=matrix --cov-report=term-missing --cov-fail-under=90 + - name: All checks succeeded + if: steps.black.outcome == 'failure' || steps.mypy.outcome == 'failure' || steps.pytest.outcome == 'failure' + run: exit 1 diff --git a/pyproject.toml b/pyproject.toml index 7f86118..0650b07 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -28,6 +28,7 @@ dependencies = [ [project.optional-dependencies] dev = [ "pytest==9.1.1", + "pytest-cov==7.1.0", "pytest-asyncio==1.4.0", "black==26.5.1", "mypy==2.1.0",