-
Notifications
You must be signed in to change notification settings - Fork 0
Add scheduled mutation testing to generated repos #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
leynos
wants to merge
8
commits into
main
Choose a base branch
from
add-mutation-testing-template
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
2044164
Add scheduled mutation testing to generated repositories
ccedd78
Gate mutmut on a 3.13 baseline and bump the default to 3.12
af95df9
Harden mutation template review boundaries
cea8135
Repair mutation branch after main rebase
9dcabbf
Decouple action pins from contracts and documentation
c5c2f9b
Test conditional mutation documentation rendering
ec962e0
Add property coverage for the mutmut version gate
0896a56
Assert mutation-workflow metadata and parameterise version contract
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
...thub/workflows/{% if mutmut_supported or use_rust %}mutation-testing.yml{% endif %}.jinja
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,62 @@ | ||
| name: Mutation testing | ||
|
|
||
| # Thin caller of the shared mutation-testing reusable workflows; caller | ||
| # guides: leynos/shared-actions docs/mutation-mutmut-workflow.md and | ||
| # docs/mutation-cargo-workflow.md. | ||
| # Scheduled runs mutate only files changed within the detection window; | ||
| # manual dispatch runs mutate everything. To test a branch, select it in | ||
| # the Actions "Run workflow" control. | ||
|
|
||
| on: | ||
| schedule: | ||
| # Stagger this cron per repository so estate runs do not bunch up; | ||
| # existing repositories occupy the 03:05-09:05 UTC band. | ||
| - cron: "30 9 * * *" # Daily, 09:30 UTC | ||
| workflow_dispatch: | ||
|
|
||
| # Default the token to no scopes; jobs opt in explicitly. | ||
| permissions: {} | ||
|
|
||
| # Serialize runs per ref: a dispatch during a scheduled run (or vice | ||
| # versa) queues rather than racing. Runs are informational, so queued | ||
| # runs wait instead of cancelling. | ||
| concurrency: | ||
| group: mutation-testing-${{ "{{" }} github.ref {{ "}}" }} | ||
| cancel-in-progress: false | ||
|
|
||
| jobs: | ||
| {%- if mutmut_supported %} | ||
| mutation: | ||
| permissions: | ||
| contents: read | ||
| id-token: write # OIDC workflow-source resolution | ||
| uses: leynos/shared-actions/.github/workflows/mutation-mutmut.yml@859416a90eb3987b46a57682c5d6b8964ad3f0a6 | ||
| with: | ||
| # Flat package layout: the package directory sits at the | ||
| # repository root, so no module prefix is stripped. | ||
| paths: "{{ package_name }}/" | ||
| module-prefix-strip: "" | ||
| # Always >= 3.13 here: this job renders only when the project's | ||
| # baseline interpreter satisfies the shared workflow's helper | ||
| # scripts. | ||
| python-version: "{{ python_version }}" | ||
|
leynos marked this conversation as resolved.
|
||
| {%- endif %} | ||
| {%- if use_rust %} | ||
|
|
||
| mutation-rust: | ||
| permissions: | ||
| contents: read | ||
| id-token: write # OIDC workflow-source resolution | ||
| uses: leynos/shared-actions/.github/workflows/mutation-cargo.yml@859416a90eb3987b46a57682c5d6b8964ad3f0a6 | ||
| with: | ||
| # The extension crate is the only Cargo target and lives outside | ||
| # the repository root, so it is declared as an extra crate and the | ||
| # root path list is emptied. | ||
| paths: "" | ||
| extra-crate-dirs: "rust_extension" | ||
| # The shared workflow always fans the root target out on manual | ||
| # dispatch, and this repository has no root crate, so that leg | ||
| # fails; keep it to a single shard. Scheduled scoped runs and the | ||
| # rust_extension target are unaffected. | ||
| shard-count: 1 | ||
| {%- endif %} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.