Merged
Conversation
Runs pytest on every PR and push to any of the three long-lived branches. This is the status check to require in branch protection rules once the dev and testing branches are created on GitHub. https://claude.ai/code/session_014HLhrFtCVRFnEyfRexiy3d
Add CI workflow gating PRs to main, testing, and dev
When a push lands on the `testing` branch, the new workflow: 1. Runs ruff lint and pytest tests 2. Checks whether testing is ahead of main 3. Creates a PR (testing → main) if one does not already exist 4. Merges the PR immediately using the built-in GITHUB_TOKEN No extra secrets are required; the testing branch is preserved after merge. https://claude.ai/code/session_01YbWdZzfzmkn5sqW3ByjUB7
Three issues were causing every CI run to fail: 1. web/app.py: remove unused `import time` (ruff F401) 2. tests/requirements.txt: add missing flask-wtf dependency required by test_web_app.py (importing web/app.py which uses CSRFProtect) 3. tests/test_web_app.py: set WTF_CSRF_ENABLED=False in the test client fixture so POST requests to /api/delete aren't blocked by CSRF validation (was returning 400 instead of 200/401) All 26 tests now pass and ruff reports no issues. https://claude.ai/code/session_01YbWdZzfzmkn5sqW3ByjUB7
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.
No description provided.