chore: Simplify toolchain to use UV for build and environment managem… #40
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: Python Tests | ||
| on: | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| - master | ||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
| steps: | ||
| steps: | ||
| - uses: actions/checkout@v5 | ||
| - name: Install uv and set the Python version | ||
| uses: astral-sh/setup-uv@v6 | ||
| with: | ||
| python-version: ${{ matrix.python-version }} | ||
| enable-cache: true | ||
| - name: Install the project | ||
| run: uv sync --locked --all-extras --dev | ||
| - name: Run tests | ||
| # For example, using `pytest` | ||
| run: uv run pytest tests | ||