Add schema validation for json data #272
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: Check static typing | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
paths: | |
- src/** | |
- tests/** | |
pull_request: | |
branches: | |
- main | |
- dev | |
paths: | |
- src/** | |
- tests/** | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.10' | |
- name: Python info | |
shell: bash -l {0} | |
run: | | |
which python3 | |
python3 --version | |
- name: Upgrade pip and install dependencies | |
run: | | |
python3 -m pip install --upgrade pip setuptools | |
pip install mypy types-toml | |
# mypy configs are in pyproject.toml | |
- name: Check static typing | |
run: | | |
mypy src tests |