Files
ComfyUI_frontend/.github/workflows/ci-tests-unit.yaml
bymyself 6859e10db9 ci: pass CODECOV_TOKEN and add codecov.yml for PR comments
Follow-up to #10575. Pass the CODECOV_TOKEN secret to the codecov
upload action so authenticated uploads enable PR comment integration.

Add codecov.yml with comment layout configuration.

Manual step required: add CODECOV_TOKEN to repo secrets (see PR description).
2026-03-31 04:59:40 -07:00

36 lines
901 B
YAML

# Description: Unit and component testing with Vitest + coverage reporting
name: 'CI: Tests Unit'
on:
push:
branches: [main, master, dev*, core/*, desktop/*]
paths-ignore: ['**/*.md']
pull_request:
branches-ignore: [wip/*, draft/*, temp/*]
paths-ignore: ['**/*.md']
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup frontend
uses: ./.github/actions/setup-frontend
- name: Run Vitest tests with coverage
run: pnpm test:coverage
- name: Upload coverage to Codecov
if: always()
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5.5.3
with:
files: coverage/lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false