diff --git a/.github/workflows/python_code_style_checks.yaml b/.github/workflows/python_code_style_checks.yaml new file mode 100644 index 0000000..e443efa --- /dev/null +++ b/.github/workflows/python_code_style_checks.yaml @@ -0,0 +1,36 @@ +name: Python Style Checks + +on: + push: + branches: + - master + pull_request: + branches: [ master ] + types: + - synchronize + - opened + +concurrency: + group: ${{ github.ref }}-${{ github.workflow }}-${{ github.event_name }} + cancel-in-progress: false + +jobs: + lint: + name: Python Style Checks + runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + steps: + - uses: actions/checkout@v4 + with: + ref: ${{ github.event.pull_request.head.sha }} + show-progress: false + - name: Install Python & Pip + uses: actions/setup-python@v5 + with: + python-version: '3.12.1' + cache: 'pip' + - name: Install Dependencies + run: pip install pycodestyle + - name: Style Checks + uses: andymckay/pycodestyle-action@0.1.3