diff --git a/.github/workflows/validate.yml b/.github/workflows/validate.yml new file mode 100644 index 0000000..26f7f6a --- /dev/null +++ b/.github/workflows/validate.yml @@ -0,0 +1,46 @@ +# openassetio-comfyui +# Copyright (c) 2025 The Foundry Visionmongers Ltd +# SPDX-License-Identifier: Apache-2.0 + +name: Validate backwards compatibility + +on: + pull_request: + branches: + - main + +jobs: + validate: + runs-on: ubuntu-latest + steps: + # We cannot simply run the node-diff action, since it will try + # to import our package without installing dependencies. So we + # install dependencies ourselves first. + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.10" # Same as comfy-org/node-diff + + - name: Checkout PR + uses: actions/checkout@v4 + with: + path: pr_repo # Same as comfy-org/node-diff + + - uses: actions/checkout@v4 + name: Checkout ComfyUI + with: + repository: comfyanonymous/ComfyUI + ref: v0.3.57 + path: comfyui + + - name: Install dependencies + shell: bash + run: | + python -m pip install --upgrade pip + pip install ./pr_repo + pip install -r ./comfyui/requirements.txt + + - uses: comfy-org/node-diff@main + env: + PYTHONPATH: ${{ github.workspace }}/comfyui diff --git a/.github/workflows/validate.yml.disabled b/.github/workflows/validate.yml.disabled deleted file mode 100644 index 21d89b9..0000000 --- a/.github/workflows/validate.yml.disabled +++ /dev/null @@ -1,18 +0,0 @@ -# openassetio-comfyui -# Copyright (c) 2025 The Foundry Visionmongers Ltd -# SPDX-License-Identifier: Apache-2.0 - -# TODO(DF): Re-enable once initial PR merged to set a baseline. -name: Validate backwards compatibility - -on: - pull_request: - branches: - - master - - main - -jobs: - validate: - runs-on: ubuntu-latest - steps: - - uses: comfy-org/node-diff@main