File tree Expand file tree Collapse file tree 3 files changed +290
-320
lines changed
Expand file tree Collapse file tree 3 files changed +290
-320
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 ]
5366Documentation = " https://django-redshift-backend.readthedocs.io/"
5467Homepage = " https://github.com/jazzband/django-redshift-backend"
@@ -67,18 +80,5 @@ local_scheme = "no-local-version"
6780[tool .ruff ]
6881exclude = [" 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 ]
8484django-redshift-backend = { workspace = true }
You can’t perform that action at this time.
0 commit comments