moonstream/.github/workflows/test.clients.python.yml

28 wiersze
671 B
YAML

name: Lint Moonstream Python client library
on:
pull_request:
branches:
- "main"
paths:
- "clients/python/**"
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install test requirements
working-directory: ./clients/python
run: pip install -e .[dev]
- name: Mypy type check
working-directory: ./clients/python
run: mypy moonstream/
- name: Black syntax check
working-directory: ./clients/python
run: black --check moonstream/