File tree Expand file tree Collapse file tree 3 files changed +286
-341
lines changed
Expand file tree Collapse file tree 3 files changed +286
-341
lines changed Original file line number Diff line number Diff line change @@ -44,26 +44,18 @@ 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 }}
49+ enable-cache : true
50+ cache-suffix : ${{ matrix.python-version }}
5051
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
52+ - name : Install Python
53+ run : uv python install ${{ matrix.python-version }}
54+ env :
55+ UV_PYTHON_PREFERENCE : only-managed
6356
6457 - name : Tox tests
65- run : |
66- .venv/bin/tox -v
58+ run : uv run --only-dev tox -v
6759 env :
6860 DJANGO : ${{ matrix.django-version }}
6961 TEST_WITH_POSTGRES : 1
Original file line number Diff line number Diff line change @@ -49,6 +49,17 @@ psycopg2-binary = [
4949 " psycopg2-binary" ,
5050]
5151
52+ [dependency-groups ]
53+ dev = [
54+ " setuptools>=73.0.1" ,
55+ " setuptools-scm>=8.1.0" ,
56+ " wheel>=0.44.0" ,
57+ " tox-uv>=1.11.2" ,
58+ " tox-gh-actions>=3.2.0" ,
59+ " ruff>=0.6.2" ,
60+ " twine>=5.1.1" ,
61+ ]
62+
5263[project .urls ]
5364Documentation = " https://django-redshift-backend.readthedocs.io/"
5465Homepage = " https://github.com/jazzband/django-redshift-backend"
@@ -67,18 +78,5 @@ local_scheme = "no-local-version"
6778[tool .ruff ]
6879exclude = [" django_redshift_backend/_vendor" ]
6980
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-
8381[tool .uv .sources ]
8482django-redshift-backend = { workspace = true }
You can’t perform that action at this time.
0 commit comments