69 set up automated testing #3
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: PyType and PyTest | |
on: | |
push: | |
branches: [ "dev", "master" ] | |
pull_request: | |
branches: [ "dev", "master" ] | |
permissions: | |
contents: read | |
jobs: | |
pytype_and_pytest: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pytype pytest | |
pip install . | |
- name: Run pytype | |
run: | | |
pytype | |
- name: Test with pytest | |
run: | | |
pytest |