Skip to content

ci: add cross-platform tests, mypy, coverage, and current actions - #17

Merged
martinctc merged 2 commits into
mainfrom
ci/test-infra
Nov 26, 2026
Merged

martinctc merged 2 commits into
mainfrom
ci/test-infra

Conversation

@martinctc

Copy link
Copy Markdown
Owner

Summary

Implements #2.

  • Unit tests now run on Ubuntu, Windows, and macOS; Python 3.9 stays on Ubuntu (24.04, since ubuntu-latest has no 3.9 build) and 3.14 runs everywhere.
  • Added a mypy job using strict mode (mypy.ini) and annotated the existing code so it passes.
  • Added a coverage job (pytest --cov) that publishes a term-missing summary to the job summary.
  • Added a byte-for-byte determinism test that runs tools/make_sample_data.py twice.
  • Bumped all Actions to their current Node 24 majors (checkout v7, setup-python v7, configure-pages v6, upload-pages-artifact v5, deploy-pages v5) to clear the Node 20 deprecation warnings.
  • Documented the mypy/coverage commands in the README and ignored coverage artifacts.

Test plan

  • python -m pytest tests -q → 48 passed
  • python -m mypy → no issues
  • pytest --cov=dashboard --cov=extract_usage → 86% / 70% (78% total)
  • Validated ci.yml and pages.yml YAML

Closes #2

Run the unit suite on Ubuntu, Windows, and macOS (3.9 on Ubuntu, 3.14
everywhere) since the extractor's default DB-path detection is OS-specific.
Add a mypy strict job, a coverage job that publishes a summary, and a
sample-data byte-for-byte determinism test. Bump the actions to their
Node 24 majors to clear the deprecation warnings.
# Conflicts:
#	docs/parity.md
#	tests/test_dashboard.py
@martinctc martinctc self-assigned this Nov 26, 2026
@martinctc
martinctc merged commit c6adad2 into main Nov 26, 2026
7 checks passed
@martinctc
martinctc deleted the ci/test-infra branch November 26, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strengthen CI and test infrastructure

1 participant