openaec-foundation/frappe_claude_skill_package/frappe-testing-cicd
Claude Code and agent skill by openaec-foundation/frappe_claude_skill_package
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Use when setting up CI/CD pipelines for Frappe apps, configuring GitHub Actions test workflows, or adding linting and security scanning. Prevents broken CI from incorrect test matrix configuration, missing MariaDB/Redis services, and uncaught code quality issues. Covers GitHub Actions workflows, test matrix (Python/Node versions), semgrep rules, pre-commit hooks, linting (ruff, eslint), CI test environment setup. Keywords: CI/CD, GitHub Actions, test matrix, semgrep, pre-commit, linting, ruff, eslint, continuous integration, automated tests, GitHub Actions, CI pipeline, pre-commit, code quality check..
Install
npx vskill@latest install openaec-foundation/frappe_claude_skill_package/frappe-testing-cicdSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as openaec-foundation/frappe_claude_skill_package/frappe-testing-cicd.
CI/CD Pipelines
Quick Reference
| Task | Tool / File | |
|---|---|---|
| Install pre-commit hooks | pre-commit install --hook-type pre-commit --hook-type commit-msg | |
| Run all pre-commit checks | pre-commit run --all-files | |
| Run linter | ruff check . | |
| Run formatter | ruff format . | |
| Run ESLint | npx eslint "**/*.js" --quiet | |
| Run tests in CI | bench --site test_site run-tests --app myapp | |
| Run parallel tests | bench --site test_site run-parallel-tests --total-builds 2 --build-number 0 | |
| Generate coverage | coverage run -m pytest && coverage xml | |
| Generate JUnit XML | bench --site test_site run-tests --junit-xml-output report.xml |
Decision Tree: CI/CD Setup
GitHub Actions Workflow for Frappe Apps
Standard Server Test Workflow
PostgreSQL Support (Additional Matrix Entry)
When using PostgreSQL, change the bench new-site command:
Pre-Commit Configuration
Minimal .pre-commit-config.yaml for Frappe Apps
ALWAYS run pre-commit install --hook-type pre-commit --hook-type commit-msg after cloning.
Ruff Configuration (pyproject.toml)
Rules:
- ALWAYS use
indent-style = "tab"for Frappe projects — this is the framework convention - ALWAYS ignore F401/F403/F405 — Frappe uses wildcard imports by convention
- NEVER set
line-lengthbelow 110 — Frappe standard is 110 characters
ESLint Configuration
ALWAYS declare Frappe globals (frappe, cur_frm, __, etc.) — otherwise ESLint reports false positives.
Semgrep Security Rules
Add to CI:
Test Coverage
Setup coverage.py
CI Coverage Step
Release Workflow
Branch Protection Rules
ALWAYS configure these branch protection rules for main and develop:
- Require status checks: Server Tests must pass before merging
- Require pull request reviews: At least 1 approval
- Require up-to-date branches: Force rebase before merge
- Require linear history: Enforce squash or rebase merging
Configure via GitHub CLI:
Common CI Failures and Fixes
| Failure | Cause | Fix | |
|---|---|---|---|
MariaDB not ready | Health check too short | Increase --health-retries to 10+ | |
Redis connection refused | Wrong port mapping | Verify port mapping matches bench set-config | |
ModuleNotFoundError | Missing app install | Ensure bench get-app and bench install-app both run | |
Site not found | Missing bench new-site | ALWAYS create site before running tests | |
Permission denied on bench | pip install location | Use pip install frappe-bench without sudo | |
Assets build failed | Node version mismatch | Use Node 18 or 20 (NEVER Node 16) | |
frappe.exceptions.DoesNotExistError | Missing test fixtures | Ensure test_records.json exists for dependent DocTypes | |
Timeout in parallel tests | Too many parallel builds | Reduce --total-builds or increase timeout-minutes |
See Also
- references/examples.md — Complete workflow examples
- references/anti-patterns.md — CI/CD mistakes to avoid
- references/github-actions.md — Full GitHub Actions reference
- references/linting.md — Linting and formatting deep dive
- frappe-testing-unit — Unit and integration testing
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/source/testing/frappe-testing-cicd/SKILL.md
Popularity
- Repository stars
- 86
- Repository forks
- 25
- 7-day trend score
- 22
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 27 Apr 2026, 7 months ago.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/openaec-foundation/frappe_claude_skill_package/frappe-testing-cicd)