Skip to content

Merge pull request #3 from seandstewart/sean/initial-release #75

Merge pull request #3 from seandstewart/sean/initial-release

Merge pull request #3 from seandstewart/sean/initial-release #75

Workflow file for this run

name: Lint
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.9"]
poetry-version: ["1.4.2"]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(f'Python {sys.version} on {sys.platform}')"
- name: Install Poetry
uses: abatilo/actions-poetry@v2.1.3
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Cache Poetry virtualenv
uses: actions/cache@v1
id: cache
with:
path: ./.venv
key: poetry-lint-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
restore-keys: |
poetry-lint-${{ runner.os }}-${{ matrix.python-version }}-${{ hashFiles('poetry.lock') }}
- name: Set Poetry config
run: |
poetry config virtualenvs.in-project true
- name: Install Dependencies (with Lint)
run: poetry install --all-extras
- name: Lint with flake8
run: "poetry run flake8 ."
- name: Check Formatting with Black
run: "poetry run black . --check"
- name: Static type-check with MyPy
run: |
poetry run mypy yesql --show-error-codes