clap/.github/workflows/pre-commit.yml

30 lines
497 B
YAML
Raw Normal View History

2021-11-17 21:12:40 +00:00
name: pre-commit
2023-03-29 19:33:22 +00:00
permissions: {} # none
2021-11-17 21:12:40 +00:00
on:
pull_request:
push:
branches: [master]
2023-03-29 19:33:22 +00:00
env:
RUST_BACKTRACE: 1
CARGO_TERM_COLOR: always
CLICOLOR: 1
2024-01-18 15:22:25 +00:00
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
2021-11-17 21:12:40 +00:00
jobs:
pre-commit:
2022-08-27 22:32:00 +00:00
permissions:
contents: read
2021-11-17 21:12:40 +00:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: pre-commit/action@v3.0.1