Update automated tests, pass as-is #290
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: 'Test' | |
on: [push, pull_request, workflow_dispatch] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.11" | |
- name: Cache pip | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install dependencies | |
run: | |
python -m pip install -r tests/requirements.txt | |
- name: Run pyright tests | |
uses: jakebailey/pyright-action@v2 | |
with: | |
pylance-version: latest-prerelease | |
- name: Run mypy tests | |
run: | |
python -m mypy . | |
hygiene: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v2 | |
- name: Run isort | |
uses: isort/isort-action@v1 | |
- name: Run Black | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose" |