Skip to content

Add MariaDB Support #554

Add MariaDB Support

Add MariaDB Support #554

Workflow file for this run

name: fmt
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
fmt:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1
- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install poetry
env:
POETRY_VERSION: "1.7.1"
run: |
curl -sSL https://install.python-poetry.org | python -
poetry config virtualenvs.create false
- name: Cache dependencies
id: cache-poetry-deps
uses: actions/cache@v2
with:
path: ${{ env.pythonLocation }}
key: ${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}-fmt
- name: Install dependencies
if: steps.cache-poetry-deps.outputs.cache-hit != 'true'
run: poetry install --extras "psycopg2 pymssql" # install mypy extras
- name: mypy
run: poetry run mypy --config-file mypy.ini .
- name: test annotations
run: poetry run mypy --config-file mypy.ini tests/annotation_tests.py
- name: isort
run: poetry run isort --check .
- name: black
run: poetry run black --check .