diff options
-rw-r--r-- | .github/workflows/flake8-postsubmit.yml | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/.github/workflows/flake8-postsubmit.yml b/.github/workflows/flake8-postsubmit.yml new file mode 100644 index 00000000..32659462 --- /dev/null +++ b/.github/workflows/flake8-postsubmit.yml | |||
@@ -0,0 +1,23 @@ | |||
1 | # GitHub actions workflow. | ||
2 | # https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions | ||
3 | # https://github.com/marketplace/actions/python-flake8 | ||
4 | |||
5 | name: Flake8 | ||
6 | |||
7 | on: | ||
8 | push: | ||
9 | branches: [main] | ||
10 | |||
11 | jobs: | ||
12 | lint: | ||
13 | name: Python Lint | ||
14 | runs-on: ubuntu-latest | ||
15 | steps: | ||
16 | - uses: actions/checkout@v3 | ||
17 | - uses: actions/setup-python@v4 | ||
18 | with: | ||
19 | python-version: "3.9" | ||
20 | - name: Run flake8 | ||
21 | uses: julianwachholz/flake8-action@v2 | ||
22 | with: | ||
23 | checkName: "Python Lint" | ||