Skip to content

🔧 bump deps and use markers for tests #405

🔧 bump deps and use markers for tests

🔧 bump deps and use markers for tests #405

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.4.2"
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: black
run: poetry run isort --check .
- name: isort
run: poetry run black --check .