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: Run style checking, static type checking, unit test, and doctests | |
on: [pull_request, push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: '3.11' | |
- run: pip install -r requirements.txt | |
- name: Run style checking | |
run: flake8 revolution | |
- name: Run static type checking | |
run: mypy --strict revolution | |
- name: Run unit tests | |
run: python -m unittest | |
- name: Run doctests | |
run: python -m doctest revolution/*.py |