mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-02-05 19:12:41 +08:00
Added test-assets.yml to github workflows, added a requirements.txt to test-assets (blake3 can eventually be removed from there when it becomes a core dependency)
This commit is contained in:
parent
11da0e6c46
commit
c0e26b93cc
30
.github/workflows/test-assets.yml
vendored
Normal file
30
.github/workflows/test-assets.yml
vendored
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
name: Assets Tests
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches: [ main, master, release/** ]
|
||||||
|
pull_request:
|
||||||
|
branches: [ main, master, release/** ]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
os: [ubuntu-latest, windows-2022, macos-latest]
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
continue-on-error: true
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- name: Set up Python
|
||||||
|
uses: actions/setup-python@v4
|
||||||
|
with:
|
||||||
|
python-version: '3.12'
|
||||||
|
- name: Install requirements
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
||||||
|
pip install -r requirements.txt
|
||||||
|
- name: Run Assets Tests
|
||||||
|
run: |
|
||||||
|
pip install -r tests-assets/requirements.txt
|
||||||
|
python -m pytest tests-assets -v
|
||||||
2
tests-assets/requirements.txt
Normal file
2
tests-assets/requirements.txt
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
pytest>=7.8.0
|
||||||
|
blake3
|
||||||
Loading…
Reference in New Issue
Block a user