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
14 changes: 6 additions & 8 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ jobs:
run: poetry install
- name: Test
shell: bash
run: poetry run coverage run -m pytest --showlocals -v tests
run: poetry run coverage run --branch -m pytest --showlocals -v tests
env:
COVERAGE_FILE: coverage/.coverage.${{ runner.os }}-py${{ matrix.python-version }}
CONTEXT: ${{ runner.os }}-py${{ matrix.python-version }}
Expand Down Expand Up @@ -94,11 +94,9 @@ jobs:
run: poetry run coverage combine coverage
- name: Coverage report
run: poetry run coverage report --skip-empty --show-missing --include=openapi_spec_tools/*
- name: Coverage HTML
run: poetry run coverage html --show-contexts --title "Coverage for ${{ github.sha }}" --include=openapi_spec_tools/*
- name: Store coverage HTML
uses: actions/upload-artifact@v4
- name: Coverage XML
run: poetry run coverage xml --include=openapi_spec_tools/*
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
name: coverage-html
path: htmlcov
include-hidden-files: true
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ test: ## Run unit tests (use TEST_TARGET to scope)
$(poetry_run) pytest -v $(TEST_TARGET)

cov: ## Run unit tests with code coverage measurments (use TEST_TARGET to scope)
$(poetry_run) coverage run -m pytest -v $(TEST_TARGET)
$(poetry_run) coverage run --branch -m pytest -v $(TEST_TARGET)
$(poetry_run) coverage report -m
$(poetry_run) coverage html

Expand Down
Loading