From 9c679dfaeb354ef8742dc14341160c19b807635f Mon Sep 17 00:00:00 2001 From: penguinboi Date: Sun, 5 Jul 2026 02:27:43 -0400 Subject: [PATCH 1/2] Make all steps run even if one fails --- .github/workflows/tests.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 62babea..67163fd 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 + - name: All checks succeeded + if: steps.black.outcome == 'failure' || steps.mypy.outcome == 'failure' || steps.pytest.outcome == 'failure' + run: exit 1 From 23205d6f7e40dca0437081ecf26c4e84d88270df Mon Sep 17 00:00:00 2001 From: penguinboi Date: Sun, 5 Jul 2026 02:28:34 -0400 Subject: [PATCH 2/2] Added validation on test coverage percentage (must be > 90%) --- .github/workflows/tests.yml | 2 +- pyproject.toml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 67163fd..5a81e99 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -38,7 +38,7 @@ jobs: 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",