build: change python version to 3.10 and fix app stage #54
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: Lint & Check Types & Test | |
| permissions: | |
| contents: read | |
| on: | |
| push: | |
| branches: ["*"] | |
| pull_request: | |
| branches: ["*"] | |
| jobs: | |
| quality: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: [ '3.10', '3.11', '3.12', '3.13' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install ruff mypy pytest pytest-asyncio | |
| - name: Lint (ruff) | |
| run: ruff check --config=pyproject.toml src/ | |
| - name: Type check (mypy) | |
| run: mypy --config-file=pyproject.toml src/ | |
| - name: Run tests (pytest) | |
| run: pytest -v |