feat: modernize project tooling and add comprehensive type annotations #25
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: Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| types: | |
| - opened | |
| - reopened | |
| - synchronize | |
| - ready_for_review | |
| branches: | |
| - main | |
| schedule: | |
| - cron: 1 0 * * * # run workflow daily | |
| permissions: | |
| contents: read | |
| jobs: | |
| check-code-quality: | |
| name: Check Code Quality | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup runner | |
| uses: ./.github/actions/setup-runner | |
| with: | |
| python-version: "3.13" | |
| - name: Setup project and install tooling | |
| run: INSTALL_MISSING=true make setup | |
| - name: Run code quality checks | |
| run: make check | |
| run-tests: | |
| name: Run Tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| - name: Setup runner | |
| uses: ./.github/actions/setup-runner | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Pin Python version for uv | |
| run: uv python pin ${{ matrix.python-version }} | |
| - name: Install deps | |
| run: make deps | |
| - name: Run tests | |
| run: make test |