Skip to content

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

Add Github Actions CI - mypy, pytest, black

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

Workflow file for this run

name: Python CI
on:
pull_request:
push:
branches: [main]
jobs:
setup:
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
mypy:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run mypy
run: poetry run mypy
pytest:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Run pytest
run: poetry run pytest
black:
needs: setup
runs-on: ubuntu-latest
steps:
- name: Check with black
run: poetry run black --check .