fix: add __ini__.py to src directory to fix mypy error #4
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 all tests and type checks | |
on: push | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
run-all-tests: | |
runs-on: ubuntu-22.04 | |
strategy: | |
matrix: | |
python-version: ["3.12", "3.13"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Intall dev dependencies | |
run: python -m pip install .[dev] | |
- name: Run tests | |
run: pytest tests/ | |
run-type-checker: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.13 | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Upgrade pip | |
run: python -m pip install --upgrade pip | |
- name: Intall dev dependencies | |
run: python -m pip install .[dev] | |
- name: Run type checker for tests directory | |
run: mypy tests/ | |
- name: Run type checker for src directory | |
run: mypy src/ |