Repository navigation
ci: add github actions workflow for automated testing - #25
Conversation
CI Failure AnalysisAll 4 matrix jobs fail at the make test step with the same root cause: AttributeError: 'TerminalReporter' object has no attribute '_sessionstarttime' Source: pytest_html_reporter/plugin.py:262 — it accesses terminalreporter._sessionstarttime, but pytest 9 renamed it to _session_start. This is a pre-existing requirements conflict, not a workflow bug. The workflow itself is fine — it correctly surfaces the problem. Proposed fixPin pytest-html-reporter to a version compatible with pytest 9, or pin pytest to <9. Option A (preferred): Upgrade pytest-html-reporter: Option B: Cap pytest at 8.x to match the pinned plugin: Secondary issues in the workflow (suggested improvements)
Action neededUpdate requirements.txt (Option A or B), then CI will pass. The workflow file needs only the minor newline fix. |
Summary
Add GitHub Actions CI/CD workflow for automated testing
Description
This PR adds a
.github/workflows/ci.ymlfile that provides continuous integration testing. The workflow runs on push and pull requests tomain, testing against Python versions 3.9, 3.10, 3.11, and 3.12. It installs dependencies fromrequirements.txtand runsmake testalong with a basic lint check usingpy_compile.Changes
.github/workflows/ci.ymlwith CI pipelinemake teststep to run pytestpython -m py_compileRelated Issues
Closes #18