Skip to content

Add Github Actions CI - mypy, pytest, black #1

Add Github Actions CI - mypy, pytest, black

Add Github Actions CI - mypy, pytest, black #1

Workflow file for this run

name: Python CI
on:
pull_request:
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python3 -
- name: Install dependencies
run: poetry install
- name: Run mypy
run: poetry run mypy
- name: Run pytest
run: poetry run pytest
- name: Check with black
run: poetry run black --check .