Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use tox-uv #567

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 7 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,20 +43,18 @@ jobs:
- uses: actions/checkout@v4
- name: Update repositories
run: sudo apt-get update
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Install the latest version of uv and set the python version
uses: astral-sh/setup-uv@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: requirements-test.txt
- run: python -m pip install -r requirements-test.txt
- run: python -m pip install -U Django==${{ matrix.django-version }}
- run: uv python install
- run: uv sync --all-extras --dev
- run: uv pip install -U "Django==${{ matrix.django-version }}"
if: matrix.django-version != 'main'
- run: python -m pip install -U https://github.com/django/django/archive/master.tar.gz
- run: uv pip install -U https://github.com/django/django/archive/master.tar.gz
if: matrix.django-version == 'main'
- run: python -m pip install -e .
- run: coverage run manage.py test
- run: python -m pip install -U coveralls
- run: uv pip install -U coveralls
- name: Upload coveralls (parallel)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ skip_covered = true
dev = [
"check-manifest>=0.50",
"check-wheel-contents>=0.6.0",
"coverage>=7.6.1",
"coverage[toml]>=7.6.1",
"pyroma>=4.2",
"ruff>=0.7.1",
"tox-uv>=1.13.1",
Expand Down
8 changes: 0 additions & 8 deletions requirements-dev.txt

This file was deleted.

3 changes: 0 additions & 3 deletions requirements-test.txt

This file was deleted.

5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ deps =
5.0: Django==5.0.*
5.1: Django==5.1.*
main: https://github.com/django/django/archive/main.tar.gz
-r{toxinidir}/requirements-test.txt

extras =
dev

[testenv:ruff]
basepython = python3.11
deps = ruff
Expand Down
Loading