@@ -19,34 +19,25 @@ jobs:
1919
2020 steps :
2121
22- - uses : actions/checkout@v3
22+ - uses : actions/checkout@v4
2323
24- - name : Set up Python ${{ matrix. python-version }}
25- uses : actions /setup-python@v4
24+ - name : Install uv and set the python version
25+ uses : astral-sh /setup-uv@v6
2626 with :
27+ enable-cache : true
28+ version : " 0.8.24"
2729 python-version : ${{ matrix.python-version }}
2830
29- - name : Install Dependencies
30- run : |
31- python -m pip install --upgrade pip
32- python -m pip install pipenv
33- python -m pip install pre-commit
31+ - name : Install the project
32+ run : uv sync --locked --all-extras --dev
3433
3534 - name : pre-commit
3635 run : |
37- pre-commit run --all-files
38-
39- - name : Check requirements.txt is up to date
40- run : |
41- pipenv requirements --hash >requirements.txt.new
42- diff -usw requirements.txt requirements.txt.new
43-
44- - name : Install requirements
45- run : pipenv sync
36+ uvx pre-commit@4.2.0 run --all-files
4637
4738 - name : Run Tests
4839 run : |
49- pipenv run python manage.py test
50- pipenv run python manage.py makemigrations
51- pipenv run python manage.py migrate
52- pipenv run python manage.py check
40+ uv run ./ manage.py test
41+ uv run ./ manage.py makemigrations
42+ uv run ./ manage.py migrate
43+ uv run ./ manage.py check
0 commit comments