Lint Python code style against PEP 8 #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: pep8 | |
on: [pull_request, push] | |
env: | |
PYTHON_VERSION: 3.12.4 | |
jobs: | |
flake8: | |
runs-on: ubuntu-latest | |
steps: | |
- run: echo "🎬 Triggered by ${{ github.event_name }}." | |
- run: echo "🐧 Running on ${{ runner.os }}." | |
- run: echo "⬇️ Cloning ${{ github.repository }}:${{ github.ref_name }}…" | |
- name: Check out repository code | |
uses: actions/checkout@v4 | |
- run: echo "🐍 Setting up Python $PYTHON_VERSION…" | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "$PYTHON_VERSION" | |
- run: echo "🔎 Linting Python code against PEP 8…" | |
- name: Lint Python code against PEP 8 | |
uses: py-actions/flake8@v2 | |
... |