Skip to content

Fix Python version (3rd try) #4

Fix Python version (3rd try)

Fix Python version (3rd try) #4

Workflow file for this run

---
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 $env.PYTHON_VERSION…"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "$env.PYTHON_VERSION"
- run: echo "🔎 Linting Python code against PEP 8…"
- name: Lint Python code against PEP 8
uses: py-actions/flake8@v2
...