Repository navigation
ci: make pytest and flake8 checks executable (#11) - #34
Open
2022117144 wants to merge 1 commit into
Open
2022117144 wants to merge 1 commit into
2022117144 wants to merge 1 commit into
Conversation
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.
Summary
Closes #11.
Make the existing GitHub Actions workflow useful on both pushes and pull requests by replacing its broken dependency step (there is no
requirements.txtin this repo), using Python 3.11 (the code usesstr | Noneannotations), and checking Python files with real pytest and flake8 commands.Changes
tests/; useflake8 --select=E9,F63,F7,F82to catch Python syntax and critical Pyflakes errors across the repo without turning unrelated pre-existing style warnings into failures.Verification
Run from repo root (Windows, Python 3.10):
python -m pytest -q tests: 8 passed (0.25s).python -m flake8 . --select=E9,F63,F7,F82 --show-source: exit 0 (flake8 7.4.1, installed outside repository).git diff --check: exit 0.CI will run Python 3.11 on
ubuntu-latest; I have not claimed an actual GitHub Actions run until checks execute on the PR. This is intentionally a minimal, functioning CI flow, not an assertion that the entire repository is fully style-compliant.AI-assisted implementation under a human-operated GitHub account. No paid contract, task award or platform payout is implied.