File tree Expand file tree Collapse file tree 4 files changed +23
-16
lines changed Expand file tree Collapse file tree 4 files changed +23
-16
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 55
66import nox
77
8+ nox .options .default_venv_backend = "uv|virtualenv"
89nox .options .reuse_existing_virtualenvs = True
910nox .options .sessions = "lint" , "tests"
1011locations = "src" , "tests"
1718@nox .session (python = python_versions )
1819def 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" ,
Original file line number Diff line number Diff 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 ]
6671scmrepo = [" py.typed" ]
6772
You can’t perform that action at this time.
0 commit comments