mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-01-26 19:09:52 +00:00
adds yaml linting to CI and applies rules to existing yaml files. ┆Issue is synchronized with this [Notion page](https://www.notion.so/PR-6682-ci-add-yamllint-2aa6d73d365081b4b67ae9d9cc86760f) by [Unito](https://www.unito.io)
28 lines
552 B
YAML
28 lines
552 B
YAML
name: "CI: Python Validation"
|
|
description: "Validates Python code in tools/devtools directory"
|
|
|
|
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@v5
|
|
|
|
- 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
|