Update deploy scripts to uv

This commit is contained in:
Antoine Bartuccio 2025-01-06 16:17:36 +01:00
parent cbe42d3a60
commit 8d10a5e0ab
3 changed files with 12 additions and 10 deletions

View File

@ -14,6 +14,8 @@ jobs:
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- uses: pre-commit/action@v3.0.1
with:
extra_args: --all-files

View File

@ -37,12 +37,12 @@ jobs:
git fetch
git reset --hard origin/master
poetry install --with prod --without docs,tests
uv sync --only-group prod
npm install
poetry run ./manage.py install_xapian
poetry run ./manage.py migrate
poetry run ./manage.py collectstatic --clear --noinput
poetry run ./manage.py compilemessages
uv run ./manage.py install_xapian
uv run ./manage.py migrate
uv run ./manage.py collectstatic --clear --noinput
uv run ./manage.py compilemessages
sudo systemctl restart uwsgi

View File

@ -36,11 +36,11 @@ jobs:
git fetch
git reset --hard origin/taiste
poetry install --with prod --without docs,tests
uv sync --only-group prod
npm install
poetry run ./manage.py install_xapian
poetry run ./manage.py migrate
poetry run ./manage.py collectstatic --clear --noinput
poetry run ./manage.py compilemessages
uv run ./manage.py install_xapian
uv run ./manage.py migrate
uv run ./manage.py collectstatic --clear --noinput
uv run ./manage.py compilemessages
sudo systemctl restart uwsgi