@@ -14,32 +14,23 @@ jobs:
1414 django-version : ["4.2", "5.0", "5.1", "5.2"]
1515 python-version : ["3.10", "3.11", "3.12", "3.13"]
1616 steps :
17- - uses : actions/checkout@v3
18- - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v4
17+ - uses : actions/checkout@v4
18+
19+ - name : Install uv and set the python version
20+ uses : astral-sh/setup-uv@v5
2021 with :
22+ enable-cache : true
2123 python-version : ${{ matrix.python-version }}
22- - name : Install Poetry
23- uses : snok/install-poetry@v1
24- with :
25- virtualenvs-create : true
26- virtualenvs-in-project : true
27- - name : Load cached venv
28- id : cached-poetry-dependencies
29- uses : actions/cache@v3
30- with :
31- path : .venv
32- key : venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
33- - name : Install dependencies
34- if : steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
35- run : poetry install --no-interaction --no-root
36- - name : Install library
37- run : poetry install --no-interaction
24+
25+ - name : Install the project
26+ run : uv sync --all-extras --dev
27+
3828 - name : Install django ${{ matrix.django-version }}
39- run : |
40- poetry run pip install "Django==${{ matrix.django-version }}"
29+ run : uv add "django==${{ matrix.django-version }}"
30+
4131 - name : Run tests and collect coverage
42- run : poetry run pytest -vv --cov=admin_anchors --cov-report=xml
32+ run : uv run pytest -vv --cov=admin_anchors --cov-report=xml
33+
4334 - name : Upload coverage reports to Codecov with GitHub Action
4435 uses : codecov/codecov-action@v4
4536 with :
0 commit comments