Skip to content

Add pytest CI workflow and test fix#178

Merged
chanshing merged 2 commits intomainfrom
ci-pytest
Feb 28, 2026
Merged

Add pytest CI workflow and test fix#178
chanshing merged 2 commits intomainfrom
ci-pytest

Conversation

@chanshing
Copy link
Member

@chanshing chanshing commented Feb 28, 2026

Add a GitHub Actions workflow to run the pytest test suite with coverage on every push/PR. Also includes a test fix.

Files Changed

.github/workflows/pytest.yaml (new)

  • New CI workflow: runs pytest with coverage on ubuntu-latest, Python 3.8/3.9/3.10 matrix
  • Mirrors flake8.yaml triggers and setup conventions
  • Uses pip install -e .[dev] for test dependencies
  • Generates terminal and XML coverage reports

tests/test_utils.py

  • Fix test_read_csv_with_row_limits to match actual csv_start_row/csv_end_row semantics (header row vs data offset)
  • Add CSV preamble lines to test fixture to exercise the skip-rows logic

The test was misusing csv_start_row as a data row selector, but the API
defines it as the file row where the header is located. Fixed by creating
a CSV with preamble metadata lines so csv_start_row correctly points to
the header row. Also removed unused imports and fixed spacing.
@chanshing chanshing changed the title Add pytest CI workflow and misc fixes Add pytest CI workflow and test fix Feb 28, 2026
@chanshing chanshing marked this pull request as ready for review February 28, 2026 22:08
@chanshing chanshing merged commit eba52d7 into main Feb 28, 2026
15 checks passed
@chanshing chanshing deleted the ci-pytest branch February 28, 2026 22:08
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