From 8d10a5e0ab09055d16f8ff18295054bb15bcd373 Mon Sep 17 00:00:00 2001 From: Sli Date: Mon, 6 Jan 2025 16:17:36 +0100 Subject: [PATCH] Update deploy scripts to uv --- .github/workflows/ci.yml | 2 ++ .github/workflows/deploy.yml | 10 +++++----- .github/workflows/taiste.yml | 10 +++++----- 3 files changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2442277d..9a436879 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index db32fa3a..43c70032 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -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 diff --git a/.github/workflows/taiste.yml b/.github/workflows/taiste.yml index a032924b..594629a4 100644 --- a/.github/workflows/taiste.yml +++ b/.github/workflows/taiste.yml @@ -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