Debian Codegraph @

ansible_collections/community/grafana/.github/workflows/lint.yml

raw
1 name: Lint
2
3 on:
4 push:
5 branches:
6 - main
7 pull_request:
8
9 jobs:
10 python:
11 runs-on: ubuntu-latest
12 steps:
13 - uses: actions/checkout@v4
14
15 - name: Get changed files
16 id: changed-files
17 uses: tj-actions/changed-files@v46
18 with:
19 files: "**/*.py"
20
21 - if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
22 uses: psf/black@stable
23 with:
24 src: ${{ steps.changed-files.outputs.all_changed_files }}
25
26 - if: ${{ steps.changed-files.outputs.all_changed_files != '' }}
27 uses: chartboost/ruff-action@v1
28 with:
29 src: ${{ steps.changed-files.outputs.all_changed_files }}
30 ansible:
31 runs-on: ubuntu-latest
32 steps:
33 - uses: actions/checkout@v4
34
35 - name: Run ansible-lint
36 uses: ansible/ansible-lint@main