@@ -18,39 +18,42 @@ jobs:
1818 - name : Install build dependencies
1919 run : |
2020 sudo apt-get install libcairo2-dev
21- - name : Set up Python
21+
22+ - name : " Set up Python"
2223 uses : actions/setup-python@v5
2324 with :
24- python-version : " 3.10"
25- cache : ' pipenv'
25+ python-version-file : " .python-version"
26+
27+ - name : Install uv
28+ uses : astral-sh/setup-uv@v6
29+
2630 - name : Install Dependencies
27- run : |
28- python3 -m pip install --upgrade pip pipenv
29- pipenv install -d
30- # if: steps.pcache.outputs.cache-hit != 'true'
31+ run : uv sync --locked --all-extras --dev
32+
3133 - name : Cache Static Files
3234 id : static-cache
3335 uses : actions/cache@v4
3436 with :
3537 path : ' pipeline/built_assets'
3638 key : ${{ hashFiles('package-lock.json') }}-${{ hashFiles('pipeline/source_assets') }}
39+
3740 - uses : bahmutov/npm-install@v1
3841 if : steps.static-cache.outputs.cache-hit != 'true'
3942 - run : node node_modules/gulp/bin/gulp build
4043 if : steps.static-cache.outputs.cache-hit != 'true'
4144 - name : Basic Checks
4245 run : |
43- pipenv run pycodestyle . --exclude=migrations,node_modules
44- pipenv run python3 manage.py check
45- pipenv run python3 manage.py makemigrations --check --dry-run
46- pipenv run python3 manage.py collectstatic --noinput
46+ uv run pycodestyle . --exclude=migrations,node_modules
47+ uv run python3 manage.py check
48+ uv run python3 manage.py makemigrations --check --dry-run
49+ uv run python3 manage.py collectstatic --noinput
4750 - name : Run Tests
48- run : pipenv run pytest -n auto --cov
51+ run : uv run pytest -n auto --cov
4952 - uses : actions/upload-artifact@v4
5053 if : failure()
5154 with :
5255 name : failure-screenshots ${{ matrix.test-group }}
5356 path : screenshots/
5457 retention-days : 5
5558 - name : Coveralls
56- run : pipenv run coveralls --service=github
59+ run : uv run coveralls --service=github
0 commit comments