Add static workflow test #34

Closed
opened 2026-10-13 09:57:46 +02:00 by Tirsvad · 0 comments
Owner

Add tests/test_workflow.py, run by pytest on every pull request, that parses .gitea/workflows/ci.yml with a safe YAML loader and checks the required keys, explicit permissions, runner and timeout, named steps, exact-tag action pins and the five-line limit on run: blocks. Closes criterion 24 (optional) of the workflow review RC-010.

Phase: MIL-001
Reference: RC-010

Add `tests/test_workflow.py`, run by pytest on every pull request, that parses `.gitea/workflows/ci.yml` with a safe YAML loader and checks the required keys, explicit permissions, runner and timeout, named steps, exact-tag action pins and the five-line limit on `run:` blocks. Closes criterion 24 (optional) of the workflow review RC-010. Phase: MIL-001 Reference: RC-010
Tirsvad added this to the MIL-001 Project scaffold and tooling milestone 2026-10-13 09:57:46 +02:00
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/025-squirrel#34