chore: release v3.1.0 #103
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| jobs: | |
| test: | |
| name: Test on Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.12", "3.13"] | |
| env: | |
| MISE_GITHUB_ATTESTATIONS: "false" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install mise | |
| uses: jdx/mise-action@v4 | |
| with: | |
| version: 2026.5.0 | |
| cache: true | |
| install: false | |
| - name: Setup Python via mise | |
| run: | | |
| mise use python@${{ matrix.python-version }} | |
| mise install | |
| - name: Install dependencies | |
| run: | | |
| mise exec -- uv sync --all-extras --all-groups | |
| - name: Run format check | |
| run: mise run format | |
| - name: Run lint | |
| run: mise run lint | |
| - name: Run type check | |
| run: mise run typecheck | |
| - name: Run tests with coverage | |
| run: mise run test --coverage | |
| - name: Upload coverage to Codecov | |
| uses: codecov/codecov-action@v7 | |
| if: matrix.python-version == '3.13' | |
| with: | |
| files: ./coverage.xml | |
| fail_ci_if_error: false | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| build: | |
| name: Build package | |
| runs-on: ubuntu-latest | |
| needs: [test] | |
| env: | |
| MISE_GITHUB_ATTESTATIONS: "false" | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Install mise | |
| uses: jdx/mise-action@v4 | |
| with: | |
| version: 2026.5.0 | |
| cache: true | |
| install: false | |
| - name: Setup Python via mise | |
| run: | | |
| mise use python@3.13 | |
| mise install | |
| - name: Install dependencies | |
| run: | | |
| mise exec -- uv sync --all-extras --all-groups | |
| - name: Build package | |
| run: mise run build | |
| - name: Upload build artifacts | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: dist | |
| path: dist/ |