Files
ardupilot/.github/workflows/pre-commit.yml
T
Peter Barker 8d7419c7eb .github: add cancel-in-progress to a pair of workflows
this means if you push your branch existing running workflows will be cancelled
2026-01-29 08:16:03 +11:00

23 lines
513 B
YAML

name: pre-commit
on:
pull_request:
push:
branches: [master]
concurrency:
group: ci-${{github.workflow}}-${{ github.ref }}
cancel-in-progress: true
jobs:
ci:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- 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/test_pre_commit_copyright.py