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
9 changes: 7 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,16 @@ jobs:
uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e #v6.8.0
- name: setup repo
run: just setup
- name: run linting
run: just lint
- name: run tests with test info
run: just coverage xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 #v5.5.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: run linting
run: just lint
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@47f89e9acb64b76debcd5ea40642d25a4adced9f #v1.1.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
7 changes: 3 additions & 4 deletions Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@ setup:
test file='':
uv run pytest -x --pdb --pdbcls=IPython.terminal.debugger:TerminalPdb {{file}}

# Compute test coverage information (formats: report, html, xml)
coverage format='report':
uv run coverage run --branch -m pytest
uv run coverage {{format}} --omit=tests/**/*.py
# Compute test coverage information (formats: term, html, xml)
coverage format='term':
uv run pytest --cov=bough --cov-branch --cov-report={{format}} --junitxml=junit.xml -o junit_family=legacy

# Run linters and formatters
lint:
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ source = "vcs"

[dependency-groups]
dev = [
"coverage>=7.11.0",
"ipdb>=0.13.13",
"pytest>=8.4.1",
"pytest-cov>=7.0.0",
"ruff>=0.12.11",
"tomli-w>=1.0.0",
"ty>=0.0.1a25",
Expand Down
20 changes: 17 additions & 3 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.