diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 40c0376..a7da6be 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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 }} diff --git a/pyproject.toml b/pyproject.toml index d259a9b..b076f2d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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", diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index f084732..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,8 +0,0 @@ --r requirements-test.txt --r docs/requirements.txt -twine==5.1.1 -build==1.2.2.post1 -setuptools==75.6.0 -check-manifest==0.50 -pyroma==4.2 -check-wheel-contents==0.6.0 diff --git a/requirements-test.txt b/requirements-test.txt deleted file mode 100644 index c360908..0000000 --- a/requirements-test.txt +++ /dev/null @@ -1,3 +0,0 @@ -tox==4.23.2 -coverage==7.6.1 -ruff==0.8.0 diff --git a/tox.ini b/tox.ini index d79b523..c397992 100644 --- a/tox.ini +++ b/tox.ini @@ -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