diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 4418b99..e02b131 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,12 +38,15 @@ jobs: with: python-version: ${{matrix.python}} + - name: Install uv + uses: astral-sh/setup-uv@v3 + - name: Set up dev environment run: | - pip install -e '.[test]' + uv sync --group test - name: Run tests - run: python -m pytest --cov=seedbank --cov-report=xml tests + run: uv run pytest --cov=seedbank --cov-report=xml tests - name: Save test results uses: lenskit/lkbuild/actions/save-test-results@main @@ -72,9 +75,12 @@ jobs: with: python-version: 3.11 + - name: Install uv + uses: astral-sh/setup-uv@v3 + - name: Set up dev environment run: | - pip install -e '.[test,${{matrix.extra}}]' + uv sync --group test --extra ${{matrix.extra}} - name: Run tests run: python -m pytest --cov=seedbank --cov-report=xml tests @@ -114,7 +120,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v4 with: - python-version: "3.10" + python-version: "3.13" - name: Install Python deps run: pip install -U build twine diff --git a/pyproject.toml b/pyproject.toml index 6415b98..d8a801d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -71,6 +71,9 @@ include = ["seedbank*"] [tool.setuptools_scm] version_scheme = "guess-next-dev" +[tool.uv] +default-groups = ["dev", "test", "doc"] + [tool.coverage.run] relative_files = true