mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-27 03:19:56 +00:00
## Summary Added CI workflow and npm script for Python syntax validation in devtools directory. ## Changes - **What**: Added GitHub Actions workflow for Python syntax checking with `python3 -m compileall` - **Dependencies**: Added `python3` binary to knip ignore list ## Review Focus Workflow triggers correctly on devtools path changes and Python syntax validation covers all relevant files. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-5841-ci-add-Python-syntax-checking-workflow-on-changes-to-devtools-27c6d73d365081b8963dd4600a233852) by [Unito](https://www.unito.io)
27 lines
487 B
YAML
27 lines
487 B
YAML
name: Devtools Python Check
|
|
|
|
on:
|
|
pull_request:
|
|
paths:
|
|
- 'tools/devtools/**'
|
|
push:
|
|
branches: [ main ]
|
|
paths:
|
|
- 'tools/devtools/**'
|
|
|
|
jobs:
|
|
syntax:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
|
|
- name: Validate Python syntax
|
|
run: python3 -m compileall -q tools/devtools
|