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
Task: MIL-003#3
28 lines
704 B
YAML
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
|