chore(ci): print failing test markers on error #37
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
| name: Workflow Sanity | |
| on: | |
| push: | |
| branches: ["main"] | |
| pull_request: | |
| concurrency: | |
| group: workflow-sanity-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: ${{ github.event_name == 'pull_request' }} | |
| jobs: | |
| yaml-no-tabs: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Fail on tabs in workflow files | |
| run: | | |
| python - <<'PY' | |
| from pathlib import Path | |
| import sys | |
| root = Path(".github/workflows") | |
| bad = [] | |
| for pattern in ("*.yml", "*.yaml"): | |
| for path in sorted(root.rglob(pattern)): | |
| if b"\t" in path.read_bytes(): | |
| bad.append(str(path)) | |
| if bad: | |
| print("Tabs found in workflow files:") | |
| for item in bad: | |
| print(f"- {item}") | |
| sys.exit(1) | |
| print("Workflow files: OK") | |
| PY | |
| actionlint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Run actionlint | |
| uses: raven-actions/actionlint@v2 |