From 6d4f0139ac1088c6a2d699a1e590beef3e8efc50 Mon Sep 17 00:00:00 2001 From: Cromha <87318892+OcelotWalrus@users.noreply.github.com> Date: Wed, 17 Jan 2024 20:50:37 +0100 Subject: [PATCH] progress_workflow - added python code style checks --- .../workflows/python_code_style_checks.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/python_code_style_checks.yaml 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