Skip to content

Commit eb2d505

Browse files
committed
using uv-0.5, setup-uv on GHA
1 parent 816a00c commit eb2d505

File tree

3 files changed

+290
-320
lines changed

3 files changed

+290
-320
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -44,26 +44,13 @@ jobs:
4444
- uses: actions/checkout@v4
4545

4646
- name: Set up Python ${{ matrix.python-version }}
47-
uses: actions/setup-python@v5
47+
uses: astral-sh/setup-uv@v3
4848
with:
49-
python-version: ${{ matrix.python-version }}
50-
51-
- uses: actions/cache@v4
52-
with:
53-
path: ~/.cache/pip
54-
key:
55-
${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
56-
restore-keys: |
57-
${{ matrix.python-version }}-pip-
58-
59-
- name: Install dependencies
60-
run: |
61-
curl -LsSf https://astral.sh/uv/install.sh | sh
62-
uv sync
49+
enable-cache: true
50+
cache-suffix: ${{ matrix.python-version }}
6351

6452
- name: Tox tests
65-
run: |
66-
.venv/bin/tox -v
53+
run: uvx run tox -v
6754
env:
6855
DJANGO: ${{ matrix.django-version }}
6956
TEST_WITH_POSTGRES: 1

pyproject.toml

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,19 @@ psycopg2-binary = [
4949
"psycopg2-binary",
5050
]
5151

52+
[dependency-groups]
53+
dev = [
54+
"setuptools>=73.0.1",
55+
"wheel>=0.44.0",
56+
"setuptools-scm>=8.1.0",
57+
"tox-uv>=1.11.2",
58+
"build>=1.2.1",
59+
"twine>=5.1.1",
60+
"django-redshift-backend",
61+
"ruff>=0.6.2",
62+
"tox-gh-actions>=3.2.0",
63+
]
64+
5265
[project.urls]
5366
Documentation = "https://django-redshift-backend.readthedocs.io/"
5467
Homepage = "https://github.com/jazzband/django-redshift-backend"
@@ -67,18 +80,5 @@ local_scheme = "no-local-version"
6780
[tool.ruff]
6881
exclude = ["django_redshift_backend/_vendor"]
6982

70-
[tool.uv]
71-
dev-dependencies = [
72-
"setuptools>=73.0.1",
73-
"wheel>=0.44.0",
74-
"setuptools-scm>=8.1.0",
75-
"tox-uv>=1.11.2",
76-
"build>=1.2.1",
77-
"twine>=5.1.1",
78-
"django-redshift-backend",
79-
"ruff>=0.6.2",
80-
"tox-gh-actions>=3.2.0",
81-
]
82-
8383
[tool.uv.sources]
8484
django-redshift-backend = { workspace = true }

0 commit comments

Comments
 (0)