mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-11 23:00:51 +08:00
Enable inference tests in CI
This commit is contained in:
parent
e6762bb82a
commit
1cf77157a1
16
.github/workflows/test.yml
vendored
16
.github/workflows/test.yml
vendored
@ -36,16 +36,16 @@ jobs:
|
|||||||
export UV_BREAK_SYSTEM_PACKAGES=true
|
export UV_BREAK_SYSTEM_PACKAGES=true
|
||||||
export UV_SYSTEM_PYTHON=true
|
export UV_SYSTEM_PYTHON=true
|
||||||
uv pip freeze | grep numpy > numpy_override.txt
|
uv pip freeze | grep numpy > numpy_override.txt
|
||||||
uv pip install ".[dev]" --inexact --override numpy_override.txt
|
uv pip install --torch-backend=auto ".[dev]" --inexact --override numpy_override.txt
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
nvidia-smi
|
|
||||||
export OTEL_METRICS_EXPORTER=none
|
|
||||||
pytest -v tests/unit
|
|
||||||
- name: Lint for errors
|
- name: Lint for errors
|
||||||
run: |
|
run: |
|
||||||
pylint --rcfile=.pylintrc comfy/
|
pylint --rcfile=.pylintrc comfy/ comfy_extras/ comfy_api/ comfy_api_nodes/
|
||||||
pylint --rcfile=.pylintrc comfy_extras/
|
- name: Run unit tests
|
||||||
|
run: |
|
||||||
|
pytest -v tests/unit
|
||||||
|
- name: Run inference tests
|
||||||
|
run: |
|
||||||
|
pytest -v tests/inference
|
||||||
build_and_execute_macos:
|
build_and_execute_macos:
|
||||||
environment: "Testing"
|
environment: "Testing"
|
||||||
name: Installation Test for macOS
|
name: Installation Test for macOS
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user