-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding mac / windows specific tests for standalone command. (#169)
* Add test for install and standalone on windows. * Test in venv. * Skip Manager. * Fix activate command. * Update. * Update. * improve platform system determination * `DependencyCompiler`: add `reqs` parameter to `.Download` and `.Wheel` methods * refactored tarball creation/extraction to use `create_tarball`/`extract_tarball` * skip uv wheel when dehydrating standalone python on windows * small fixup to joining python standalone download url * improve parsing of reqs from reqFile * add `tarfile.data_filter` to all tar filters to address secruity audit * revert tar security fix, since `tarfile.data_filter` is busted in many python versions - see: python/cpython#107845 * add numpy<2 override on windows --------- Co-authored-by: telamonian <[email protected]>
- Loading branch information
1 parent
a2423ff
commit 60f735d
Showing
6 changed files
with
282 additions
and
94 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Mac Specific Commands" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: macos-latest | ||
env: | ||
PYTHONIOENCODING: "utf8" | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m venv venv | ||
source venv/bin/activate | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -e . | ||
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --m-series --skip-manager | ||
comfy --workspace ./ComfyUI standalone --platform macos | ||
comfy standalone --rehydrate | ||
./python/bin/python ComfyUI/main.py --cpu --quick-test-for-ci |
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,34 @@ | ||
name: "Windows Specific Commands" | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
test: | ||
runs-on: windows-latest | ||
env: | ||
PYTHONIOENCODING: "utf8" | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: 3.12 | ||
|
||
- name: Install Dependencies | ||
run: | | ||
python -m venv venv | ||
.\venv\Scripts\Activate.ps1 | ||
Get-Command python | ||
python -m pip install --upgrade pip | ||
pip install pytest | ||
pip install -e . | ||
comfy --skip-prompt --workspace ./ComfyUI install --fast-deps --nvidia --cuda-version 12.1 --skip-manager | ||
comfy --workspace ./ComfyUI standalone --platform windows --proc x86_64 | ||
ls | ||
comfy standalone --rehydrate --platform windows --proc x86_64 | ||
./python/python.exe ComfyUI/main.py --cpu --quick-test-for-ci |
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.