Skip to content

Commit b8fcbb3

Browse files
committed
minor renaming
1 parent 0f20258 commit b8fcbb3

File tree

4 files changed

+23
-16
lines changed

4 files changed

+23
-16
lines changed

.github/workflows/release.yaml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,14 @@ jobs:
2121
with:
2222
fetch-depth: 0
2323

24-
- name: Set up Python 3.13
24+
- name: Set up Python 3.14
2525
uses: actions/setup-python@v6
2626
with:
27-
python-version: '3.13'
27+
python-version: '3.14'
2828

29-
- name: Upgrade pip and nox
30-
run: |
31-
pip install --upgrade pip nox
32-
pip --version
33-
nox --version
29+
- uses: astral-sh/setup-uv@v7
30+
- name: Install nox
31+
run: uv pip install --system nox --upgrade
3432

3533
- name: Build package
3634
run: nox -s build

.github/workflows/tests.yaml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,11 +37,14 @@ jobs:
3737
python-version: ${{ matrix.pyv }}
3838
allow-prereleases: true
3939

40-
- name: Upgrade pip and nox
41-
run: |
42-
python -m pip install --upgrade pip nox
43-
pip --version
44-
nox --version
40+
- uses: astral-sh/setup-uv@v7
41+
with:
42+
enable-cache: true
43+
cache-suffix: ${{ matrix.pyv }}
44+
cache-dependency-glob: pyproject.toml
45+
46+
- name: Install nox
47+
run: uv pip install --system nox --upgrade
4548

4649
- name: Lint code
4750
run: nox -s lint
@@ -52,11 +55,11 @@ jobs:
5255
- name: Upload coverage report
5356
uses: codecov/codecov-action@v5
5457

55-
- name: Run tests with dev dependencies
58+
- name: Run tests with upstream-dev dependencies
5659
if: ${{ github.event_name == 'schedule' && matrix.pyv != '3.9' }}
5760
run: nox -s tests-${{ matrix.pyv }} -- --slow --cov-report=xml
5861
env:
59-
TEST_DEV_DEPS: "1"
62+
TEST_WITH_UPSTREAM_DEPS: "1"
6063

6164
- name: Build package
6265
run: nox -s build

noxfile.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
import nox
77

8+
nox.options.default_venv_backend = "uv|virtualenv"
89
nox.options.reuse_existing_virtualenvs = True
910
nox.options.sessions = "lint", "tests"
1011
locations = "src", "tests"
@@ -17,8 +18,8 @@
1718
@nox.session(python=python_versions)
1819
def tests(session: nox.Session) -> None:
1920
deps = [".[tests]"]
20-
if os.getenv("TEST_DEV_DEPS") == "1":
21-
deps.extend(["dulwich @ git+https://github.com/jelmer/dulwich.git"])
21+
if os.getenv("TEST_WITH_UPSTREAM_DEPS") == "1":
22+
deps.extend(["--group", "upstream-deps"])
2223
session.install(*deps)
2324
session.run(
2425
"pytest",

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,11 @@ dev = [
6262
"types-tqdm",
6363
]
6464

65+
[dependency-groups]
66+
upstream-deps = [
67+
"dulwich @ git+https://github.com/jelmer/dulwich.git",
68+
]
69+
6570
[tool.setuptools.package-data]
6671
scmrepo = ["py.typed"]
6772

0 commit comments

Comments
 (0)