steam-backlog-enforcer/.github/workflows/python-tests.yml
Krzysztof kuhy Rudnicki edfd486158
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
pre-commit / pre-commit (push) Has been cancelled
Tests / test (push) Has been cancelled
Tests / web-coverage (push) Has been cancelled
CI runs the vitest coverage bar; it only ran on pre-push before
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-20 22:12:24 +02:00

51 lines
1.2 KiB
YAML

name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run tests with coverage
run: |
python -m pytest steam_backlog_enforcer/tests/ \
--cov=steam_backlog_enforcer \
--cov-branch \
--cov-fail-under=100 \
-v
# vitest's 100% bar used to run only in the local pre-push hook, which
# became a 1-second stamp check on 2026-09-20 (pre-commit's manual stage
# holds it now). Nothing else in CI runs the web suite, so this job is the
# only place that bar is enforced on every push.
web-coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24.21.0
cache: npm
cache-dependency-path: web/package-lock.json
- name: vitest --coverage, 100% (web UI)
run: |
npm --prefix web ci
npm --prefix web run coverage