Skip to content

Use astral-sh/setup-uv action #2

Use astral-sh/setup-uv action

Use astral-sh/setup-uv action #2

Workflow file for this run

# Runs unit tests with a matrix of Python versions and operating systems
name: Test matrix
on: pull_request
jobs:
test-matrix:
name: Test matrix
strategy:
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
python-version: ["3.10", "3.11", "3.12", "3.13"]
runs-on: ${{ matrix.os }}
steps:
- name: Check out code
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
version: "0.5.x"
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --frozen --all-extras --dev
- name: Run unit tests
run: uv run python -m unittest discover -v -s "./epymorph" -p "*_test.py"