Skip to content

Python Tools

Python Tools #292

Workflow file for this run

# See https://docs.github.com/en/actions/guides/building-and-testing-python
# for information about Python testing on GitHub Actions.
name: Python Tools
# Run on all branches.
on: [push]
jobs:
build:
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.7, 3.8]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tools/requirements.txt
- name: Lint with flake8
run: |
cd tools
make flake8
- name: Type checking with MyPy
run: |
cd tools
make mypy
- name: Test with unittest
run: |
cd tools
make tests