Release 0.2.0a3 (#11) #78
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: push | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
check: | |
- isort --check . | |
- black --check . | |
- flake8 . | |
- mypy . | |
python_version: ["3.10", "3.11"] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Cache Poetry | |
uses: actions/cache@v3 | |
with: | |
path: .venv | |
key: ${{ runner.os }}-${{ matrix.python_version }}-poetry-${{ hashFiles('poetry.lock') }} | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python_version }} | |
- name: Set up Poetry | |
uses: snok/[email protected] | |
with: | |
virtualenvs-in-project: true | |
- name: Install dependencies | |
run: | | |
poetry install | |
- name: Run linter | |
run: | | |
poetry run ${{ matrix.check }} |