Skip to content

Commit ab60102

Browse files
committed
ci(reviewer-bot): store coverage artifacts under artifacts
1 parent 2786270 commit ab60102

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/reviewer-bot-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,19 +34,21 @@ jobs:
3434

3535
- name: Run migrated reviewer bot tests with targeted coverage
3636
run: >-
37+
mkdir -p artifacts/coverage &&
38+
COVERAGE_FILE=artifacts/coverage/.coverage
3739
uv run pytest tests --import-mode=importlib
3840
--cov=scripts.reviewer_bot
3941
--cov=scripts.reviewer_bot_lib
4042
--cov-branch
4143
--cov-report=term-missing
42-
--cov-report=json:coverage-reviewer-bot.json
44+
--cov-report=json:artifacts/coverage/reviewer-bot.json
4345
4446
- name: Enforce reviewer bot statement and branch floors
4547
run: |
4648
uv run python - <<'PY'
4749
import json
4850
49-
with open("coverage-reviewer-bot.json", encoding="utf-8") as handle:
51+
with open("artifacts/coverage/reviewer-bot.json", encoding="utf-8") as handle:
5052
totals = json.load(handle)["totals"]
5153
5254
statements = totals["percent_statements_covered"]

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,8 @@ build/
33
*.egg-info/
44
.cache/
55
.venv/
6+
.coverage
7+
coverage*.json
8+
coverage.xml
9+
htmlcov/
10+
artifacts/coverage/

0 commit comments

Comments
 (0)