Skip to content

Add basic testing workflow using uv #2

Add basic testing workflow using uv

Add basic testing workflow using uv #2

Workflow file for this run

name: Test geff
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: ${{ matrix.platform }} (${{ matrix.python-version }})
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.18"
- name: Set up python
uses: actions/setup-python@v5
with:
python-version-file: .python-version
- name: Install project and requirements
run: uv sync --all-extras --dev
- name: Run tests
run: uv run pytest tests