Update README.md #187
Workflow file for this run
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
# This is a basic workflow to help you get started with Actions | ||
name: linting-validation | ||
# Controls when the workflow will run | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | ||
jobs: | ||
lint: | ||
name: lint | ||
runs-on: ${{ matrix.os }} | ||
matrix: | ||
os: [ubuntu-latest] | ||
python: ["3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v4 | ||
name: Install Python | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: pip install isort black==22.3.0 | ||
pip install flake8 | ||
- name: Run black | ||
run: black --line-length=89 --check . | ||
- name: Run FLAKE8 | ||
run: flake8 --max-line-length=89 --per-file-ignores="*/__init__.py:F401" ./flamby | ||
- name: Run isort | ||
run: isort . |