tests #9
This file contains 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: tests | |
on: workflow_dispatch | |
jobs: | |
uv-example: | |
name: tests | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest] | |
python-version: | |
- "3.9" | |
- "3.10" | |
- "3.11" | |
- "3.12" | |
- "3.13" | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Run example | |
run: uv run python example.py | |
- name: Run pip freeze | |
if: always() | |
run: uv pip freeze | |
- name: Run tests | |
if: always() | |
run: uv run pytest |