Pytest Tweaks, Part III - Test Isolation #622
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
name: Lint | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install Poetry | |
uses: snok/install-poetry@v1 | |
with: | |
version: 1.5.1 | |
virtualenvs-create: true | |
virtualenvs-in-project: true | |
- name: Install linting tools | |
run: poetry install --no-root --only lint | |
- name: Run Black | |
run: poetry run black . --check --verbose --diff --color | |
- name: Run Isort | |
run: poetry run isort . --check-only --diff | |
- name: Run MyPy | |
run: poetry run mypy --config-file=pyproject.toml |