Skip to content

Add tests and a GitHub workflow that runs them on every pull request - #12

Merged
balen merged 2 commits into
mainfrom
add-tests
Nov 18, 2026
Merged

balen merged 2 commits into
mainfrom
add-tests

Conversation

@VickyS08

Copy link
Copy Markdown
Contributor
  • tests/test_csv2sef.py: unit tests for headers, conversions, historical
    notation (caves, below scale, trace), flags, aliases, long layout, database
    exports, the Halifax example and the metadata template (PTC/PGC, alias and
    unit_change lines).
  • tests/known_values.csv + test_known_values.py: 134 conversions checked
    against published factors and tables (List 1966, WMO). Rows marked
    to_check (Beaufort and Smithsonian equivalents) are reported, not failed,
    until the expected values are confirmed; a crash always fails.
    Run python tests/test_known_values.py --report for a row-by-row table.
  • tools/coverage_report.py: lists conversions with no test.
  • .github/workflows/tests.yml: installs csv2sef, runs the tests and converts
    the examples on every pull request and push to main (Python 3.14).
  • Require cdrutilities >= 1.0.2 (Paris inches and clearness-of-sky fix).

Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com
Claude-Session: https://claude.ai/code/session_01CC13ToxZ7NuJEZJX9urApc

VickyS08 and others added 2 commits November 18, 2026 20:34
- tests/test_csv2sef.py: unit tests for headers, conversions, historical
  notation (caves, below scale, trace), flags, aliases, long layout, database
  exports, the Halifax example and the metadata template (PTC/PGC, alias and
  unit_change lines).
- tests/known_values.csv + test_known_values.py: 134 conversions checked
  against published factors and tables (List 1966, WMO). Rows marked
  to_check (Beaufort and Smithsonian equivalents) are reported, not failed,
  until the expected values are confirmed; a crash always fails.
  Run `python tests/test_known_values.py --report` for a row-by-row table.
- tools/coverage_report.py: lists conversions with no test.
- .github/workflows/tests.yml: installs csv2sef, runs the tests and converts
  the examples on every pull request and push to main (Python 3.14).
- Require cdrutilities >= 1.0.2 (Paris inches and clearness-of-sky fix).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01CC13ToxZ7NuJEZJX9urApc
@balen
balen merged commit a055027 into main Nov 18, 2026
1 check passed
@balen
balen deleted the add-tests branch November 18, 2026 21:33
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.

2 participants