Skip to content

Commit 5fb54fb

Browse files
committed
chore: switch test runner to pytest
1 parent cfc4507 commit 5fb54fb

4 files changed

Lines changed: 242 additions & 5 deletions

File tree

.github/copilot-instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- Package manager: [uv](https://github.com/astral-sh/uv) - always use `uv run` for development commands
1010
- Linter/Formatter: [ruff](https://github.com/astral-sh/ruff) - configured in pyproject.toml
1111
- Type checker: [ty](https://github.com/astral-sh/ty) - use `uv run ty check`
12-
- Test framework: unittest
12+
- Test framework: pytest
1313
- Build backend: uv_build
1414

1515
## Code Conventions

.github/workflows/test.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
run: uv sync --dev
2727

2828
- name: Run tests
29-
run: uv run python -m unittest discover tests/
29+
run: uv run pytest
3030

3131
coverage:
3232
runs-on: ubuntu-latest
@@ -43,9 +43,7 @@ jobs:
4343

4444
- name: Run tests with coverage
4545
run: |
46-
uv run coverage run -m unittest discover tests/
47-
uv run coverage report
48-
uv run coverage xml
46+
uv run pytest --cov --cov-branch --cov-report=term --cov-report=xml
4947
5048
- name: Upload coverage to Codecov
5149
uses: codecov/codecov-action@v5

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ Documentation = "https://rocky-d.github.io/dttb/"
3636
[dependency-groups]
3737
dev = [
3838
"coverage>=7.6.1",
39+
"pytest>=8.0.0",
40+
"pytest-cov>=5.0.0",
3941
"python-dotenv>=1.0.1",
4042
"pyyaml>=6.0.3",
4143
"ruff>=0.15.0",

0 commit comments

Comments
 (0)