summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/format_and_lint.yml10
1 files changed, 6 insertions, 4 deletions
diff --git a/.github/workflows/format_and_lint.yml b/.github/workflows/format_and_lint.yml
index 2f4f41f..cc2b812 100644
--- a/.github/workflows/format_and_lint.yml
+++ b/.github/workflows/format_and_lint.yml
@@ -4,25 +4,27 @@ on:
push:
branches:
- main, develop
- paths:
- - '**.py'
pull_request:
- paths:
- - '**.py'
+ branches:
+ - main, develop
jobs:
+
format_and_lint:
runs-on: ubuntu-latest
+
steps:
- name: Checkout HEAD
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
+
- name: Run flake8
uses: microsoft/[email protected]
with:
flake8: true
fail_on_error: true
+
- name: Run yapf
uses: mritunjaysharma394/autoyapf@v2
with: