Skip to content

Commit

Permalink
upgrade to uv package management
Browse files Browse the repository at this point in the history
  • Loading branch information
mdekstrand committed Nov 15, 2024
1 parent 9b96ab2 commit 8ef9d24
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 8ef9d24

Please sign in to comment.