Files
ardupilot/.github/workflows/pre-commit.yml
T
James HarveyandClaude Fable 5 d38913432b .github: run the whole tests directory in pre-commit
The workflow named tests/test_pre_commit_copyright.py alone, so any new
file in tests/ was never run by CI. Point pytest at the directory so the
test added two commits ago actually gates changes.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-09-04 12:07:49 +10:00

26 lines
514 B
YAML

name: pre-commit
on:
pull_request:
push:
branches: [master]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
ci:
runs-on: ubuntu-slim
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: 3.x
- uses: pre-commit/action@v3.0.1
- run: python3 -m pip install --upgrade pip
- run: python3 -m pip install pytest
- run: PYTHONPATH="." pytest tests/