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: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
cache: pip
- run: pip install -e ".[dev]"
- name: Pytest
run: pytest --cov-report=xml
run: pytest --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload coverage to Codecov
if: ${{ !cancelled() }}
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
Expand All @@ -52,6 +52,13 @@ jobs:
files: coverage.xml
flags: py${{ matrix.python-version }}
fail_ci_if_error: true
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@0fa95f0e1eeaafde2c782583b36b28ad0d8c77d3 # v1.2.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: junit.xml
flags: py${{ matrix.python-version }}

# Single check to gate branch protection on, so the matrix can change freely.
ci-ok:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ env/
.coverage
htmlcov/
coverage.xml
junit.xml

# Editors / OS
.idea/
Expand Down
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ follow [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
- Packaging: `src/pychess/` layout, `pyproject.toml`, `pychess` console script,
`py.typed`.
- Tooling: Ruff (lint + format), Mypy, pytest-cov (85% gate), `pre-commit`, all
run in CI on Python 3.12 and 3.13.
run in CI on Python 3.12 and 3.13, with Codecov coverage + test-analytics
uploads.
- `perft` regression tests against published node counts; unit tests for every
module.

Expand Down
Loading