Python Tools #291
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
# 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 |