mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-24 00:47:57 -05:00
as recommended by https://github.com/ossf/scorecard/blob/main/docs/checks.md#token-permissions
32 lines
595 B
YAML
32 lines
595 B
YAML
name: ❄ Flake8
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- '**.py'
|
|
pull_request:
|
|
paths:
|
|
- '**.py'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
flake8_py3:
|
|
name: Python Lint
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: 3.7
|
|
architecture: x64
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
- name: Run flake8
|
|
uses: julianwachholz/flake8-action@v2.0.2
|
|
with:
|
|
checkName: 'Python Lint'
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|