mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-19 02:40:15 +08:00
workflows
This commit is contained in:
parent
aab3b6c5a4
commit
3cb44914f2
25
.github/workflows/test.yml
vendored
25
.github/workflows/test.yml
vendored
@ -10,23 +10,34 @@ on: [ push ]
|
|||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: Build Test
|
name: Build Test
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.runner.labels }}
|
||||||
|
container: ${{ matrix.runner.container }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [ "3.10", "3.11", "3.12" ]
|
runner:
|
||||||
|
- labels: [self-hosted, Linux, X64, cpu]
|
||||||
|
container: "ubuntu"
|
||||||
|
- labels: [self-hosted, Linux, X64, ipex-a380-6gb]
|
||||||
|
container: "intel/intel-optimized-pytorch:2.3.0-pip-base"
|
||||||
|
- labels: [self-hosted, Linux, X64, rocm-7600-8gb]
|
||||||
|
container: "rocm/pytorch:rocm6.0.2_ubuntu22.04_py3.10_pytorch_2.1.2"
|
||||||
|
- labels: [self-hosted, Linux, X64, cuda-3060-12gb]
|
||||||
|
container: "nvcr.io/nvidia/pytorch:24.04-py3"
|
||||||
steps:
|
steps:
|
||||||
|
- run: |
|
||||||
|
apt update
|
||||||
|
apt install -y python3 python3-setuptools git build-essential ffmpeg libsm6 libxext6
|
||||||
|
pip uninstall -y $(pip list --format=freeze | grep opencv) &&
|
||||||
|
rm -rf /usr/local/lib/python3.10/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.11/dist-packages/cv2/ || rm -rf /usr/local/lib/python3.12/dist-packages/cv2/
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: ${{ matrix.python-version }}
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install .[dev]
|
pip install --no-build-isolation .[dev]
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: |
|
run: |
|
||||||
|
export HSA_OVERRIDE_GFX_VERSION=11.0.0
|
||||||
pytest -v tests/unit
|
pytest -v tests/unit
|
||||||
- name: Lint for errors
|
- name: Lint for errors
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user