Add Github Actions CI - mypy, pytest, black #3
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Python CI | ||
on: | ||
pull_request: | ||
push: | ||
branches: [main] | ||
jobs: | ||
mypy: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare Python environment | ||
uses: actions/python_prepare@v1 | ||
- name: Run mypy | ||
run: poetry run mypy | ||
pytest: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare Python environment | ||
uses: actions/python_prepare@v1 | ||
- name: Run pytest | ||
run: poetry run pytest | ||
black: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Prepare Python environment | ||
uses: actions/python_prepare@v1 | ||
- name: Check with black | ||
run: poetry run black --check . |