chore: bump actions/checkout from 3.6.0 to 4.1.0 (#579) #1185
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: Lint & Style Check | |
on: | |
push: | |
branches: [main, develop] | |
pull_request: | |
branches: [main, develop] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: "3.11" | |
- run: python -m pip install -U flake8 | |
- name: Lint with flake8 | |
run: | | |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | |
flake8 . --count --exit-zero --max-complexity=10 --statistics | |
style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4.1.0 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4.7.0 | |
with: | |
python-version: "3.11" | |
- run: python -m pip install -U black isort | |
- name: Check isort | |
run: | | |
isort --check . | |
- name: Check Black | |
run: | | |
black --check . |