Bump actions/setup-python from 5.3.0 to 5.4.0 #571
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 | |
on: | |
pull_request: | |
push: | |
branches: [master] | |
workflow_dispatch: | |
jobs: | |
format: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- run: | | |
python -m pip install --upgrade pip | |
python -m pip install -U .[dev] | |
- name: black | |
run: | | |
black --check --diff src tests | |
- name: flake8 | |
run: | | |
flake8 src tests examples | |
- name: isort | |
run: | | |
isort src tests examples | |
mypy: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ macos-latest, ubuntu-latest, windows-latest ] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/[email protected] | |
with: | |
python-version: '3.x' | |
- run: | | |
python -m pip install --upgrade pip | |
python -m pip install -U .[dev] | |
- name: mypy | |
run: | | |
mypy src tests examples |