diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 3329198..cbf9dd7 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 5e0caaa..610a46c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", +]