Skip to content

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

Add Github Actions CI - mypy, pytest, black

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

Workflow file for this run

name: Python CI
on:
pull_request:
push:
branches: [main]
jobs:
mypy:

Check failure on line 9 in .github/workflows/python_ci.yaml

View workflow run for this annotation

GitHub Actions / Python CI

Invalid workflow file

The workflow is not valid. .github/workflows/python_ci.yaml (Line: 9, Col: 3): The workflow must contain at least one job with no dependencies.
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 .