Files
github-action/.gitea/workflows/validate-workflows.yml
Tirsvad 075fae2e45
TirSystem/github-action: Publish wiki / publish-wiki (push) Skipped
TirSystem/github-action: Sync GitHub mirror metadata / sync-metadata (push) Skipped
Validate workflows / validate (pull_request) Successful in 22s
Add a coverage gate to validate-workflows and stop tracking .coverage
Task: MIL-003#3
2026-10-11 12:05:47 +08:00

28 lines
704 B
YAML

name: Validate workflows
on:
pull_request:
push:
branches: [ main ]
workflow_dispatch:
jobs:
validate:
permissions:
contents: read
runs-on: ubuntu-latest
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Create a virtual environment and install test dependencies
run: |
python3 -m venv .venv
.venv/bin/python -m pip install --quiet -r tests/requirements.txt
- name: Validate workflow files and run the offline tests under coverage
run: .venv/bin/python -m coverage run -m pytest -q tests
- name: Check the coverage of the tools
run: .venv/bin/python -m coverage report