Skip to content

Merge pull request #4 from IntelSoftware/workflow/format_check #4

Merge pull request #4 from IntelSoftware/workflow/format_check

Merge pull request #4 from IntelSoftware/workflow/format_check #4

Workflow file for this run

name: Check code formatting with autopep8
on:
push:
branches: [ "main" ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ "main" ]
jobs:
python-code-format:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Setup python
uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0
with:
python-version: "3.10"
architecture: "x64"
- name: Display Python Version
run: python --version
- name: Install packages
run: pip install autopep8
- name: Check code formatting style
run: |
autopep8 --exit-code --recursive --in-place --aggressive --aggressive .