Test, check and verify! #175
Workflow file for this run
This file contains hidden or 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: Toadr3 | |
| run-name: "Test, check and verify!" | |
| on: [ push, pull_request ] | |
| jobs: | |
| Continuous-Testing: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ "3.11", "3.12", "3.13", "3.14" ] | |
| steps: | |
| - name: π Checkout | |
| uses: actions/checkout@main | |
| - name: π Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: 𦀠Install dependencies | |
| run: | | |
| pip install poetry | |
| poetry install | |
| - name: π Check linting with ruff | |
| run: poetry run ruff check --output-format=github | |
| - name: π Check formatting | |
| run: poetry run ruff format --check | |
| - name: π¦ Check type hints with mypy | |
| run: | | |
| poetry run mypy --config-file=pyproject.toml --warn-unused-configs --check-untyped-defs --strict toadr3/ | |
| poetry run mypy --config-file=pyproject.toml --warn-unused-configs --check-untyped-defs --strict tests/ | |
| - name: πΈ Run tests with pytest | |
| run: poetry run pytest tests/ |