forked from ChelseaKR/fare-policy-assistant
-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1.45 KB
/
Copy pathmutation.yml
File metadata and controls
42 lines (37 loc) · 1.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Mutation (advisory)
# ADVISORY mutation testing on the core scoring logic (backlog #15). This is a
# diagnostic signal about test strength, not a merge gate: it never runs on
# pull_request or push, only weekly and on demand, and the mutmut step is
# continue-on-error so a low score can never fail the build. The per-PR merge
# gate remains the coverage-gated suite in ci.yml. Scope, baseline, and how to
# read survivors live in docs/mutation-testing.md.
on:
workflow_dispatch: {}
schedule:
- cron: "0 6 * * 1" # Mondays 06:00 UTC
# Least privilege: read the code, write nothing.
permissions:
contents: read
concurrency:
group: mutation-${{ github.ref }}
cancel-in-progress: true
jobs:
mutation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
persist-credentials: false # read-only job; no credential should outlive checkout (zizmor artipacked)
- uses: astral-sh/setup-uv@38f3f104447c67c051c4a08e39b64a148898af3a # v4
- name: Run mutmut on the core scoring modules (offline; advisory)
continue-on-error: true
run: make mutation
- name: Upload mutant results
if: always()
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
with:
name: mutation-results
path: |
.mutmut-cache
mutants/**/*.meta
if-no-files-found: ignore