Skip to content

Add a test workflow; read CRLF files (0.5.2) - #8

Merged
yoch merged 3 commits into
masterfrom
ci/tests
Oct 20, 2026
Merged

yoch merged 3 commits into
masterfrom
ci/tests

Conversation

@yoch

@yoch yoch commented Oct 20, 2026 •

Copy link
Copy Markdown
Owner

Adds .github/workflows/tests.yml: builds the sdist in an isolated build, installs it, and runs tests/ outside the checkout so the compiled module is imported. Matrix: Linux with Python 3.9 to 3.14, Linux with Python 3.12 and numpy<2, macOS and Windows with Python 3.13. Runs on pushes to master, pull requests and manual dispatch.

The first Windows run found a bug, also reproducible on Linux: a file with CRLF line endings failed to load with invalid index, because the parser ended a line at \n only. save_svmfile wrote in text mode, hence CRLF on Windows, so it could not read back its own files there. Lines now also end at \r, and save_svmfile writes \n on every platform. Two new tests cover this.

Version bumped to 0.5.2.

🤖 Generated with Claude Code

https://claude.ai/code/session_01XUT7Yj2eYmEyHV5fiicMsP

yoch and others added 3 commits October 20, 2026 08:02
Builds the sdist (isolated build), installs it and runs the tests outside the
checkout: Linux for Python 3.9 to 3.14 and numpy<2, macOS and Windows.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUT7Yj2eYmEyHV5fiicMsP
The parser stopped a line at '\n' only, so the '\r' of a CRLF line was read
as an index: 'invalid index'. save_svmfile wrote in text mode, hence CRLF on
Windows, and could not read back its own files there.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUT7Yj2eYmEyHV5fiicMsP
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XUT7Yj2eYmEyHV5fiicMsP
@yoch yoch changed the title Add a test workflow Add a test workflow; read CRLF files (0.5.2) Oct 20, 2026
@yoch
yoch merged commit c085a84 into master Oct 20, 2026
9 checks passed
@yoch
yoch deleted the ci/tests branch October 20, 2026 06:11
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.

1 participant