Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 22 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,12 @@ jobs:
- name: Run tests
run: |
uv run --extra=dev \
coverage run \
--parallel-mode \
--source=src/ \
--source=tests/ \
-m pytest \
-s \
-vvv \
--showlocals \
--exitfirst \
${{ matrix.ci_pattern }}
coverage run -m pytest \
-s \
-vvv \
--showlocals \
--exitfirst \
${{ matrix.ci_pattern }}
env:
UV_PYTHON: ${{ matrix.python-version }}

Expand Down Expand Up @@ -204,19 +200,15 @@ jobs:
- name: Run tests
run: |
uv run --extra=dev \
coverage run \
--parallel-mode \
--source=src/ \
--source=tests/ \
-m pytest \
--skip-docker_build_tests \
--skip-docker_in_memory \
--skip-mock \
--skip-real \
--capture=no \
-vvv \
--exitfirst \
.
coverage run -m pytest \
--skip-docker_build_tests \
--skip-docker_in_memory \
--skip-mock \
--skip-real \
--capture=no \
-vvv \
--exitfirst \
.
env:
UV_PYTHON: ${{ matrix.python-version }}

Expand Down Expand Up @@ -260,16 +252,12 @@ jobs:
#
# We therefore have a few ``# pragma: no cover`` statements.
uv run --extra=dev \
coverage run \
--parallel-mode \
--source=src/ \
--source=tests/ \
-m pytest \
--skip-real \
-vvv \
--exitfirst \
-n auto \
.
coverage run -m pytest \
--skip-real \
-vvv \
--exitfirst \
-n auto \
.
env:
UV_PYTHON: ${{ matrix.python-version }}

Expand Down Expand Up @@ -305,7 +293,7 @@ jobs:
coverage report --format=markdown >> "$GITHUB_STEP_SUMMARY"

# Report again and fail if under 100%.
coverage report --fail-under=100
coverage report

- name: Upload HTML report if check failed
uses: actions/upload-artifact@v4
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -365,13 +365,16 @@ branch = true
omit = [
"src/mock_vws/_flask_server/healthcheck.py",
]
parallel = true
source = [ "src/", "tests/" ]

[tool.coverage.report]

exclude_also = [
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
]
fail_under = 100

[tool.mypy]

Expand Down