diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build_pipeline.yml similarity index 66% rename from .github/workflows/build-pipeline.yml rename to .github/workflows/build_pipeline.yml index 32c49b9..68adf8f 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build_pipeline.yml @@ -6,21 +6,28 @@ name: CI build on: pull_request: - branches: - - master - - main + workflow_dispatch: + jobs: - build: + test: + name: Test and Lint runs-on: ${{ matrix.os }} env: PYTHONIOENCODING: "utf8" strategy: matrix: os: [ ubuntu-latest ] - python-version: [ "3.12" ] + python-version: [ "3.11" ] steps: - uses: actions/checkout@v4 + + - uses: actions/checkout@v4 + name: Checkout ComfyUI + with: + repository: comfyanonymous/ComfyUI + ref: v0.3.57 + path: comfyui - name: Set up Python uses: actions/setup-python@v5 with: @@ -29,9 +36,12 @@ jobs: run: | python -m pip install --upgrade pip pip install .[dev] - - name: Run Linting - run: | - ruff check . + pip install -r comfyui/requirements.txt - name: Run Tests run: | pytest tests/ + env: + PYTHONPATH: ./comfyui + - name: Run Linting + run: | + ruff check .