Preparing to create tag 4.0.1 #864
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Flake8 | |
on: | |
workflow_call: | |
inputs: | |
excluded_errors: | |
description: "Excluded Errors" | |
type: string | |
required: false | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
Flake8: | |
strategy: | |
fail-fast: false | |
matrix: | |
config: | |
- container: ghcr.io/steinwurf/flake8-4:2.0.0 | |
name: Flake8 4.0.1 | |
runs-on: [self-hosted, docker, builder] | |
name: ${{ matrix.config.name }} | |
container: | |
image: ${{ matrix.config.container }} | |
options: --user 0:0 | |
volumes: | |
- /home/buildbot/.ssh:/root/.ssh | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v3 | |
- name: Check Python syntax | |
env: | |
EXCLUDED_ERRORS: F632 | |
# if: ${{ env.EXCLUDED_ERRORS != '' }} | |
# Inspired by https://github.com/cclauss/Find-Python-syntax-errors-action/blob/master/Dockerfile | |
run: flake8 . --count --select=E9,F63,F72,F82 --ignore=${{ env.EXCLUDED_ERRORS }} --show-source --statistics |