Skip to content

Merge pull request #410 from 6democratickim9/ci/modernize-python-matrix #263

Merge pull request #410 from 6democratickim9/ci/modernize-python-matrix

Merge pull request #410 from 6democratickim9/ci/modernize-python-matrix #263

Workflow file for this run

name: Flake8
on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
cache: pip
cache-dependency-path: pyproject.toml
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install flake8
- name: Analysing the code with flake8
run: flake8 --per-file-ignores="__init__.py:F401" .