Update github workflow to use uv

This commit is contained in:
2026-02-05 20:20:29 -08:00
parent 7c54bf3823
commit 79b56d770f
2 changed files with 16 additions and 11 deletions

View File

@@ -5,21 +5,21 @@ on: [push]
jobs: jobs:
test: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
container:
image: python:${{ matrix.python-version }}
strategy: strategy:
fail-fast: false fail-fast: false
matrix: matrix:
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
steps: steps:
- uses: actions/checkout@v4 - uses: actions/checkout@v6
- name: Install dependencies - name: Install uv and set the Python version
run: | uses: astral-sh/setup-uv@v7
python -m pip install --upgrade pip with:
pip install -r requirements-dev.txt python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --all-extras --dev
- name: Run tests - name: Run tests
run: | run: uv run pytest tests
python -m pytest -v

View File

@@ -10,7 +10,7 @@ authors = [
{name = "Maks Snegov", email = "snegov@spqr.link"} {name = "Maks Snegov", email = "snegov@spqr.link"}
] ]
readme = "README.md" readme = "README.md"
requires-python = ">=3.6" requires-python = ">=3.8"
classifiers = [ classifiers = [
"Development Status :: 2 - Pre-Alpha", "Development Status :: 2 - Pre-Alpha",
"Intended Audience :: Developers", "Intended Audience :: Developers",
@@ -34,3 +34,8 @@ packages = ["curateipsum"]
[tool.setuptools_scm] [tool.setuptools_scm]
version_file = "curateipsum/_version.py" version_file = "curateipsum/_version.py"
[dependency-groups]
dev = [
"pytest>=7.0.1",
]