Skip to content

Commit 1d6f453

Browse files
committed
Enhance test coverage reporting in GitHub Actions and configure pytest options
1 parent 539c830 commit 1d6f453

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ jobs:
2626
2727
- name: Run tests
2828
run: |
29-
pytest --cov=aireview --cov-report=xml
29+
pytest --cov=aireview --cov-branch --cov-report=xml
3030
3131
- name: Upload coverage to Codecov
32-
uses: codecov/codecov-action@v3
32+
uses: codecov/codecov-action@v5
3333
with:
34-
file: ./coverage.xml
35-
fail_ci_if_error: true
34+
token: ${{ secrets.CODECOV_TOKEN }}

pyproject.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
11
[build-system]
22
requires = ["setuptools>=45", "wheel", "build"]
3-
build-backend = "setuptools.build_meta"
3+
build-backend = "setuptools.build_meta"
4+
5+
[tool.pytest.ini_options]
6+
addopts = "--cov=aireview --cov-branch --cov-report=xml"
7+
testpaths = ["tests"]
8+
python_files = "test_*.py"

0 commit comments

Comments
 (0)