Skip to content

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

Add Github Actions CI - mypy, pytest, black

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

Workflow file for this run

name: Python CI
on:
pull_request:
push:
branches: [main]
jobs:
mypy:
runs-on: ubuntu-latest
steps:
- name: Prepare Python environment
uses: actions/python_prepare@v1
- name: Run mypy
run: poetry run mypy
pytest:
runs-on: ubuntu-latest
steps:
- name: Prepare Python environment
uses: actions/python_prepare@v1
- name: Run pytest
run: poetry run pytest
black:
runs-on: ubuntu-latest
steps:
- name: Prepare Python environment
uses: actions/python_prepare@v1
- name: Check with black
run: poetry run black --check .