Update github workflow to use uv
This commit is contained in:
20
.github/workflows/run_tests.yml
vendored
20
.github/workflows/run_tests.yml
vendored
@@ -5,21 +5,21 @@ on: [push]
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: python:${{ matrix.python-version }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
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:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/checkout@v6
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r requirements-dev.txt
|
||||
- name: Install uv and set the Python version
|
||||
uses: astral-sh/setup-uv@v7
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
|
||||
- name: Install the project
|
||||
run: uv sync --all-extras --dev
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
python -m pytest -v
|
||||
run: uv run pytest tests
|
||||
|
||||
@@ -10,7 +10,7 @@ authors = [
|
||||
{name = "Maks Snegov", email = "snegov@spqr.link"}
|
||||
]
|
||||
readme = "README.md"
|
||||
requires-python = ">=3.6"
|
||||
requires-python = ">=3.8"
|
||||
classifiers = [
|
||||
"Development Status :: 2 - Pre-Alpha",
|
||||
"Intended Audience :: Developers",
|
||||
@@ -34,3 +34,8 @@ packages = ["curateipsum"]
|
||||
|
||||
[tool.setuptools_scm]
|
||||
version_file = "curateipsum/_version.py"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"pytest>=7.0.1",
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user