Skip to content

Commit

Permalink
using uv-0.5, setup-uv on GHA
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa committed Nov 11, 2024
1 parent 816a00c commit eb2d505
Show file tree
Hide file tree
Showing 3 changed files with 290 additions and 320 deletions.
21 changes: 4 additions & 17 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,26 +44,13 @@ jobs:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
uses: astral-sh/setup-uv@v3
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v4
with:
path: ~/.cache/pip
key:
${{ matrix.python-version }}-pip-${{ hashFiles('**/pyproject.toml') }}
restore-keys: |
${{ matrix.python-version }}-pip-
- name: Install dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
uv sync
enable-cache: true
cache-suffix: ${{ matrix.python-version }}

- name: Tox tests
run: |
.venv/bin/tox -v
run: uvx run tox -v
env:
DJANGO: ${{ matrix.django-version }}
TEST_WITH_POSTGRES: 1
26 changes: 13 additions & 13 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,19 @@ psycopg2-binary = [
"psycopg2-binary",
]

[dependency-groups]
dev = [
"setuptools>=73.0.1",
"wheel>=0.44.0",
"setuptools-scm>=8.1.0",
"tox-uv>=1.11.2",
"build>=1.2.1",
"twine>=5.1.1",
"django-redshift-backend",
"ruff>=0.6.2",
"tox-gh-actions>=3.2.0",
]

[project.urls]
Documentation = "https://django-redshift-backend.readthedocs.io/"
Homepage = "https://github.com/jazzband/django-redshift-backend"
Expand All @@ -67,18 +80,5 @@ local_scheme = "no-local-version"
[tool.ruff]
exclude = ["django_redshift_backend/_vendor"]

[tool.uv]
dev-dependencies = [
"setuptools>=73.0.1",
"wheel>=0.44.0",
"setuptools-scm>=8.1.0",
"tox-uv>=1.11.2",
"build>=1.2.1",
"twine>=5.1.1",
"django-redshift-backend",
"ruff>=0.6.2",
"tox-gh-actions>=3.2.0",
]

[tool.uv.sources]
django-redshift-backend = { workspace = true }
Loading

0 comments on commit eb2d505

Please sign in to comment.