-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into feat/install_snapshot
- Loading branch information
Showing
53 changed files
with
3,529 additions
and
903 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: ruff_check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
ruff_check: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.x" | ||
- name: install ruff | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install ruff | ||
- name: lint check and then format check with ruff | ||
run: | | ||
ruff check | ||
ruff format --check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
name: "Test CLI Tool on GPU runners" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "comfy_cli/**" | ||
- "!comfy_cli/test_**" | ||
pull_request: | ||
branches: | ||
- main | ||
paths: | ||
- "comfy_cli/**" | ||
- "!comfy_cli/test_**" | ||
|
||
jobs: | ||
test-cli-gpu: | ||
name: "Run Tests on GPU Runners" | ||
runs-on: | ||
group: gpu-runners | ||
labels: ${{ matrix.os }}-x64-gpu # | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [linux] | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Check Nvidia | ||
run: | | ||
nvidia-smi | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Check disk space | ||
run: | | ||
df -h | ||
- name: Install Dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -e . | ||
- name: Test e2e | ||
id: test-e2e | ||
env: | ||
PYTHONPATH: ${{ github.workspace }} | ||
TEST_E2E: true | ||
TEST_E2E_COMFY_INSTALL_FLAGS: --nvidia --cuda-version 11.8 | ||
TEST_E2E_COMFY_LAUNCH_FLAGS_EXTRA: "" | ||
run: | | ||
pytest tests/e2e | ||
- name: Retry test e2e but without gpu | ||
if: ${{ failure() && steps.test-e2e.conclusion == 'failure' }} | ||
env: | ||
PYTHONPATH: ${{ github.workspace }} | ||
TEST_E2E: true | ||
run: | | ||
pytest tests/e2e |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
repos: | ||
- repo: https://github.com/psf/black | ||
rev: 22.3.0 | ||
- repo: https://github.com/astral-sh/ruff-pre-commit | ||
# Ruff version. | ||
rev: v0.6.1 | ||
hooks: | ||
- id: black | ||
language_version: python3.9 | ||
- repo: https://github.com/pylint-dev/pylint | ||
rev: v2.16.2 | ||
hooks: | ||
- id: pylint | ||
args: | ||
- --disable=R,C,W,E0401 | ||
# Run the linter. | ||
- id: ruff | ||
args: [ --fix ] | ||
# Run the formatter. | ||
- id: ruff-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.