mirror of
https://github.com/ansible-collections/hetzner.hcloud.git
synced 2026-02-04 08:01:49 +00:00
23 lines
439 B
YAML
23 lines
439 B
YAML
name: Lint
|
|
|
|
on:
|
|
push:
|
|
branches: [main, stable-1]
|
|
pull_request:
|
|
|
|
jobs:
|
|
pre-commit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Setup python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.x
|
|
|
|
- name: Install dependencies
|
|
run: pip install pre-commit
|
|
|
|
- name: Run pre-commit
|
|
run: pre-commit run --all-files --show-diff-on-failure
|