diff options
| author | Mike Frysinger <vapier@google.com> | 2022-12-09 02:53:11 -0500 |
|---|---|---|
| committer | Mike Frysinger <vapier@google.com> | 2022-12-09 14:32:29 +0000 |
| commit | 8d25584f6987bbef81277996203f0967c4d8b4da (patch) | |
| tree | 6f4877da066a221f5b0cc61991d6260191a47b78 | |
| parent | 0e4f1e7fba4770908235e136c5ed0a540854651e (diff) | |
| download | git-repo-8d25584f6987bbef81277996203f0967c4d8b4da.tar.gz | |
github: enable flake8 postsubmit testing
Change-Id: I8532f52b3016eb491ddeb48463459d74afd36015
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/354514
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Mike Frysinger <vapier@google.com>
| -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" | ||
