Repository navigation
ci: run unit, integration, doctest, and example checks - #65
Merged
Merged
Conversation
…-3.13 Adds a `tests` job to the CI workflow with separate steps for unit tests, documented-output integration tests, docstring tests, and every script in examples/. Also fixes examples/ppa_revenue_policies.py, which crashed because GenerationSettlementEvent now requires period_start and period_end. Co-Authored-By: Claude <noreply@anthropic.com>
Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #64
Summary
pre-commitjob in.github/workflows/ci.ymlwith a singletestsjob that runs on Python 3.11, 3.12, and 3.13. Each kind of check is its own step, so a failure shows which one broke:pytest tests/unit -n autopytest tests/test_documented_outputs.py(runs the examples and the getting-started snippet and compares their output with the documented values)pytest dcaf(uses the--doctest-modulesaddopt already in the config)examples/*.pyscript, so examples not covered by the documented-output test (e.g.ppa_revenue_policies.py) are still checkedcheck_copyright.py, whitespace hooks) are no longer run in CI. They still run locally throughpre-commit.examples/ppa_revenue_policies.py. It crashed withTypeErrorbecauseGenerationSettlementEventnow requiresperiod_start/period_end. It now passes the one-day[date, date + 1 day)bounds that a legacy-datedGenerationresolves to.Test plan
pytestcollection)🤖 Generated with Claude Code