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.
feat: add GitHub Actions CI workflow #4240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
feat: add GitHub Actions CI workflow #4240
Changes from all commits
eaca29ad72a307File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Dependency install step can silently succeed after total failure.
|| truemakes this step pass even if both install paths fail, so later steps run in an invalid environment and CI can still appear green.Suggested fix
- name: Install dependencies run: | - pip install -e . 2>/dev/null || pip install -r requirements.txt 2>/dev/null || true - pip install pytest pytest-cov flake8 mypy + set -euo pipefail + python -m pip install --upgrade pip + if [ -f pyproject.toml ] || [ -f setup.py ]; then + python -m pip install -e . + elif [ -f requirements.txt ]; then + python -m pip install -r requirements.txt + else + echo "No Python dependency manifest found" >&2 + exit 1 + fi + python -m pip install pytest pytest-cov flake8 mypy📝 Committable suggestion
🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow does not match the stated project CI target.
This workflow validates Python (
flake8,mypy,pytest) while the PR objective says CI should target a Vue/TypeScript project. As written, it won’t gate the intended stack.🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type-check and test failures are currently masked.
Both steps convert failures into success (
|| echo ...), which defeats CI quality gates.Suggested fix
- name: Type check with mypy run: | - mypy . --ignore-missing-imports 2>/dev/null || echo "mypy not configured" + set -euo pipefail + if find . -name "*.py" -o -name "*.pyi" | grep -q .; then + mypy . --ignore-missing-imports + else + echo "No Python files; skipping mypy" + fi - name: Run tests run: | - pytest --tb=short --cov=. --cov-report=term-missing 2>/dev/null || python -m unittest discover 2>/dev/null || echo "No test framework found" + set -euo pipefail + if [ -d tests ] || find . -name "test_*.py" | grep -q .; then + pytest --tb=short --cov=. --cov-report=term-missing + else + echo "No Python tests discovered; skipping" + fi🤖 Prompt for AI Agents
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Guard against prototype pollution in parameter iteration.
The
for...inloop iterates over all enumerable properties including inherited ones from the prototype chain. This could inadvertently add unexpected properties to the URL search parameters ifparamshas inherited properties.🛡️ Proposed fix using Object.entries()
Alternatively, use
Object.keys():📝 Committable suggestion
🤖 Prompt for AI Agents
Uh oh!
There was an error while loading. Please reload this page.