- Update pyproject.toml version - Add GitHub Actions publish workflow - Update README - Remove unused prompt-gen-icon.png
50 lines
885 B
YAML
50 lines
885 B
YAML
name: Test
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install ruff
|
|
|
|
- name: Lint with ruff
|
|
run: |
|
|
ruff check .
|
|
ruff format --check .
|
|
|
|
validate:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.10'
|
|
|
|
- name: Install comfy-cli
|
|
run: |
|
|
pip install comfy-cli
|
|
|
|
- name: Validate node metadata
|
|
run: |
|
|
comfy node validate
|