Skip to content

fix(tests): follow command literals through forwarding helpers in the emit-command ratchet #3038

fix(tests): follow command literals through forwarding helpers in the emit-command ratchet

fix(tests): follow command literals through forwarding helpers in the emit-command ratchet #3038

Workflow file for this run

name: Run pytest
on:
push:
branches:
- main
pull_request:
branches:
- main
permissions:
contents: read
statuses: write
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Install uv
uses: astral-sh/setup-uv@c771a70e6277c0a99b617c7a806ffedaca235ff9 # v9.0.0
with:
enable-cache: true
python-version: '3.10' # Follow the min version in pyproject.toml
# `--locked` fails the job if uv.lock has drifted from pyproject.toml, so test
# dependency versions can only change via a deliberate lockfile bump.
- name: Install dependencies
run: uv sync --extra dev --locked
- name: Run tests
env:
PYTHONPATH: ${{ github.workspace }}
run: uv run --locked --extra dev pytest --cov=comfy_cli --cov-report=xml .
- name: Upload coverage to Codecov
uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v6.0.2
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true
verbose: true