Flake8 #52
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_dispatch: | |
inputs: | |
extra_resolve_options: | |
description: Extra Resolve Options | |
required: false | |
schedule: | |
- cron: 0 1 * * * | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
flake8: | |
name: Flake8 Syntax Check | |
runs-on: | |
- self-hosted | |
- docker | |
container: | |
image: python:3.9.5 | |
options: --user 0:0 | |
volumes: | |
- /home/buildbot/.ssh:/root/.ssh | |
steps: | |
- name: Install SSH client | |
run: apt update && apt -y install openssh-client | |
- name: Checkout source code | |
uses: actions/checkout@v2 | |
- name: Create flake file | |
run: echo "[flake8]\n\nignore = F632" >> .flake8 | |
- name: Check python syntax | |
uses: cclauss/Find-Python-syntax-errors-action@master | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref || github.run_id }} | |
cancel-in-progress: true |