comfy-test-0.2.9
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.13
0.2.12
0.2.11
0.2.10
0.2.1
0.2.0
0.1.99
0.1.98
0.1.97
0.1.96
0.1.95
0.1.94
0.1.93
0.1.92
0.1.91
0.1.90
0.1.9
0.1.89
0.1.88
0.1.87
0.1.86
0.1.85
0.1.84
0.1.83
0.1.82
0.1.81
0.1.80
0.1.8
0.1.79
0.1.78
0.1.77
0.1.76
0.1.75
0.1.74
0.1.73
0.1.72
0.1.71
0.1.70
0.1.7
0.1.69
0.1.68
0.1.67
0.1.66
0.1.65
0.1.64
0.1.63
0.1.62
0.1.61
0.1.60
0.1.6
0.1.59
0.1.58
0.1.57
0.1.56
0.1.55
0.1.54
0.1.53
0.1.52
0.1.51
0.1.50
0.1.5
0.1.49
0.1.48
0.1.47
0.1.46
0.1.45
0.1.44
0.1.43
0.1.42
0.1.41
0.1.40
0.1.4
0.1.39
0.1.38
0.1.37
0.1.36
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.30
0.1.3
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.2
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.111
0.1.110
0.1.11
0.1.109
0.1.108
0.1.107
0.1.106
0.1.105
0.1.104
0.1.103
0.1.102
0.1.101
0.1.100
0.1.10
0.1.1
0.0.9
0.0.84
0.0.83
0.0.82
0.0.81
0.0.80
0.0.8
0.0.79
0.0.78
0.0.77
0.0.76
0.0.75
0.0.74
0.0.73
0.0.72
0.0.71
0.0.70
0.0.7
0.0.69
0.0.68
0.0.67
0.0.66
0.0.65
0.0.64
0.0.63
0.0.62
0.0.61
0.0.60
0.0.6
0.0.59
0.0.58
0.0.56
0.0.55
0.0.54
0.0.53
0.0.52
0.0.51
0.0.50
0.0.5
0.0.49
0.0.48
0.0.47
0.0.46
0.0.45
0.0.44
0.0.43
0.0.42
0.0.41
0.0.40
0.0.4
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.3
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.2
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.1
0.2.9
0.2.8
0.2.7
0.2.6
0.2.5
0.2.4
0.2.3
0.2.20
0.2.2
0.2.19
0.2.18
0.2.17
0.2.16
0.2.13
0.2.12
0.2.11
0.2.10
0.2.1
0.2.0
0.1.99
0.1.98
0.1.97
0.1.96
0.1.95
0.1.94
0.1.93
0.1.92
0.1.91
0.1.90
0.1.9
0.1.89
0.1.88
0.1.87
0.1.86
0.1.85
0.1.84
0.1.83
0.1.82
0.1.81
0.1.80
0.1.8
0.1.79
0.1.78
0.1.77
0.1.76
0.1.75
0.1.74
0.1.73
0.1.72
0.1.71
0.1.70
0.1.7
0.1.69
0.1.68
0.1.67
0.1.66
0.1.65
0.1.64
0.1.63
0.1.62
0.1.61
0.1.60
0.1.6
0.1.59
0.1.58
0.1.57
0.1.56
0.1.55
0.1.54
0.1.53
0.1.52
0.1.51
0.1.50
0.1.5
0.1.49
0.1.48
0.1.47
0.1.46
0.1.45
0.1.44
0.1.43
0.1.42
0.1.41
0.1.40
0.1.4
0.1.39
0.1.38
0.1.37
0.1.36
0.1.35
0.1.34
0.1.33
0.1.32
0.1.31
0.1.30
0.1.3
0.1.29
0.1.28
0.1.27
0.1.26
0.1.25
0.1.24
0.1.23
0.1.22
0.1.21
0.1.20
0.1.2
0.1.19
0.1.18
0.1.17
0.1.16
0.1.15
0.1.14
0.1.13
0.1.12
0.1.111
0.1.110
0.1.11
0.1.109
0.1.108
0.1.107
0.1.106
0.1.105
0.1.104
0.1.103
0.1.102
0.1.101
0.1.100
0.1.10
0.1.1
0.0.9
0.0.84
0.0.83
0.0.82
0.0.81
0.0.80
0.0.8
0.0.79
0.0.78
0.0.77
0.0.76
0.0.75
0.0.74
0.0.73
0.0.72
0.0.71
0.0.70
0.0.7
0.0.69
0.0.68
0.0.67
0.0.66
0.0.65
0.0.64
0.0.63
0.0.62
0.0.61
0.0.60
0.0.6
0.0.59
0.0.58
0.0.56
0.0.55
0.0.54
0.0.53
0.0.52
0.0.51
0.0.50
0.0.5
0.0.49
0.0.48
0.0.47
0.0.46
0.0.45
0.0.44
0.0.43
0.0.42
0.0.41
0.0.40
0.0.4
0.0.39
0.0.38
0.0.37
0.0.36
0.0.35
0.0.34
0.0.33
0.0.32
0.0.31
0.0.30
0.0.3
0.0.29
0.0.28
0.0.27
0.0.26
0.0.25
0.0.24
0.0.23
0.0.22
0.0.21
0.0.20
0.0.2
0.0.19
0.0.18
0.0.17
0.0.16
0.0.15
0.0.14
0.0.13
0.0.12
0.0.1
توضیحات
Installation testing infrastructure for ComfyUI custom nodes
| ویژگی | مقدار |
|---|---|
| سیستم عامل | - |
| نام فایل | comfy-test-0.2.9 |
| نام | comfy-test |
| نسخه کتابخانه | 0.2.9 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Andrea Pozzetti |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | - |
| آدرس اینترنتی | https://pypi.org/project/comfy-test/ |
| مجوز | MIT |
# comfy-test
Testing infrastructure for ComfyUI custom nodes.
Test your nodes install and work correctly across **Linux**, **macOS**, **Windows**, and **Windows Portable**. No pytest code needed.
## Quick Start
Add these files to your custom node repository:
### 1. `comfy-test.toml`
```toml
[test]
# Name is auto-detected from directory
[test.workflows]
cpu = "all" # Run all workflows in workflows/ folder
```
### 2. `.github/workflows/test-install.yml`
```yaml
name: Test Installation
on: [push, pull_request]
jobs:
test:
uses: PozzettiAndrea/comfy-test/.github/workflows/test-matrix.yml@main
```
### 3. `workflows/test.json`
A minimal ComfyUI workflow that uses your nodes. Export from ComfyUI.
**Done!** Push to GitHub and your tests will run automatically on all platforms.
## Test Levels
comfy-test runs 7 test levels in sequence:
| Level | Name | What It Does |
|-------|------|--------------|
| 1 | **SYNTAX** | Check project structure (pyproject.toml/requirements.txt), CP1252 compatibility |
| 2 | **INSTALL** | Clone ComfyUI, create environment, install node + dependencies |
| 3 | **REGISTRATION** | Start server, verify nodes appear in `/object_info` |
| 4 | **INSTANTIATION** | Test each node's constructor |
| 5 | **STATIC_CAPTURE** | Screenshot workflows (no execution) |
| 6 | **VALIDATION** | 4-level workflow validation (schema, graph, introspection, partial execution) |
| 7 | **EXECUTION** | Run workflows end-to-end, capture outputs |
Each level depends on previous levels. You can run up to a specific level with `--level`:
```bash
comfy-test run --level registration # Runs: SYNTAX -> INSTALL -> REGISTRATION
```
## Workflow Validation (4 Levels)
The VALIDATION level runs comprehensive checks before execution:
| Level | Name | What It Checks |
|-------|------|----------------|
| 1 | **Schema** | Widget values match allowed enums, types, and ranges |
| 2 | **Graph** | Connections are valid, all referenced nodes exist |
| 3 | **Introspection** | Node definitions are well-formed (INPUT_TYPES, RETURN_TYPES, FUNCTION) |
| 4 | **Partial Execution** | Runs non-CUDA nodes to verify they work |
### Detecting CUDA Nodes
To mark nodes as requiring CUDA (excluded from partial execution), use `comfy-env.toml`:
```toml
[cuda]
packages = ["nvdiffrast", "flash-attn"]
```
## Configuration Reference
### Minimal Config
```toml
[test]
# Everything has sensible defaults - this is all you need
[test.workflows]
cpu = "all"
```
### Full Config Example
```toml
[test]
# Name is auto-detected from directory name (e.g., "ComfyUI-MyNode")
# ComfyUI version to test against
comfyui_version = "latest" # or a tag like "v0.2.0" or commit hash
# Python version (default: random from 3.11, 3.12, 3.13)
python_version = "3.11"
# Test levels to run (default: all)
# Options: syntax, install, registration, instantiation, static_capture, validation, execution
levels = ["syntax", "install", "registration", "instantiation", "static_capture", "validation", "execution"]
# Or use: levels = "all"
# Enable/disable platforms (all enabled by default)
[test.platforms]
linux = true
macos = true
windows = true
windows_portable = true
# Workflow configuration
[test.workflows]
# Workflows to run on CPU runners (GitHub-hosted)
cpu = "all" # or list specific files: ["test_basic.json", "test_advanced.json"]
# Workflows to run on GPU runners (self-hosted)
gpu = ["test_gpu.json"]
# Timeout for workflow execution in seconds (default: 3600)
timeout = 120
# Platform-specific settings
[test.linux]
enabled = true
skip_workflow = false # Skip workflow execution, only verify registration
[test.macos]
enabled = true
skip_workflow = false
[test.windows]
enabled = true
skip_workflow = false
[test.windows_portable]
enabled = true
skip_workflow = false
comfyui_portable_version = "latest" # Portable-specific version
```
### Workflow Discovery
Workflows are auto-discovered from the `workflows/` folder:
- All `.json` files in `workflows/` are found automatically
- Use `cpu = "all"` to run all discovered workflows on CPU
- Use `gpu = "all"` to run all discovered workflows on GPU
- Or specify individual files: `cpu = ["basic.json", "advanced.json"]`
## CLI
```bash
# Install
pip install comfy-test
# Initialize config and GitHub workflow
comfy-test init
# Run tests locally
comfy-test run --platform linux
# Run specific level only
comfy-test run --level registration
# Dry run (show what would happen)
comfy-test run --dry-run
# Publish results to GitHub Pages
comfy-test publish ./results --repo owner/repo
```
## CUDA Packages on CPU-only CI
comfy-test runs on CPU-only GitHub Actions runners. For nodes that use CUDA packages:
1. **Installation works** - comfy-test sets `COMFY_ENV_CUDA_VERSION=12.8` so comfy-env can resolve wheel URLs
2. **Import may fail** - CUDA packages typically fail to import without a GPU
For full CUDA testing, use a self-hosted runner with a GPU.
## License
MIT
نیازمندی
| مقدار | نام |
|---|---|
| - | psutil>=5.9.0 |
| - | py7zr>=0.20.0 |
| - | requests>=2.28.0 |
| ython_versio | tomli>=2.0.0; |
| - | websocket-client |
| xtr | mypy; |
| xtr | pytest; |
| xtr | ruff; |
| xtr | pillow>=10.0.0; |
| xtr | playwright>=1.40.0; |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.10 | Python |
نحوه نصب
نصب پکیج whl comfy-test-0.2.9:
pip install comfy-test-0.2.9.whl
نصب پکیج tar.gz comfy-test-0.2.9:
pip install comfy-test-0.2.9.tar.gz