mirror of
https://github.com/comfyanonymous/ComfyUI.git
synced 2026-01-28 07:10:15 +08:00
Enable macOS worker
This commit is contained in:
parent
8329bb0db3
commit
e88f458a70
32
.github/workflows/test.yml
vendored
32
.github/workflows/test.yml
vendored
@ -1,4 +1,4 @@
|
|||||||
name: Build package
|
name: Backend Tests
|
||||||
|
|
||||||
#
|
#
|
||||||
# This workflow is a test of the python package build.
|
# This workflow is a test of the python package build.
|
||||||
@ -8,7 +8,35 @@ name: Build package
|
|||||||
on: [ push ]
|
on: [ push ]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build_and_execute_macos:
|
||||||
|
name: Installation, Unit and Workflow Tests for macOS
|
||||||
|
runs-on: ${{ matrix.runner.labels }}
|
||||||
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
runner:
|
||||||
|
- labels: [ self-hosted, m1-8gb ]
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
- run: |
|
||||||
|
python3 -m venv
|
||||||
|
source venv/bin/activate
|
||||||
|
python -m pip install setuptools pip --upgrade
|
||||||
|
pip install --no-build-isolation .[dev]
|
||||||
|
- name: Run unit tests
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
pytest -v tests/unit
|
||||||
|
- name: Run all other supported tests
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
pytest -v tests/inference
|
||||||
|
- name: Lint for errors
|
||||||
|
run: |
|
||||||
|
source venv/bin/activate
|
||||||
|
pylint comfy/
|
||||||
|
pylint comfy_extras/
|
||||||
|
build_and_execute_linux:
|
||||||
name: Installation, Unit and Workflow Tests for Linux
|
name: Installation, Unit and Workflow Tests for Linux
|
||||||
runs-on: ${{ matrix.runner.labels }}
|
runs-on: ${{ matrix.runner.labels }}
|
||||||
container: ${{ matrix.runner.container }}
|
container: ${{ matrix.runner.container }}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user