Sith/.github/actions/setup_project/action.yml
2025-01-06 16:17:54 +01:00

31 lines
753 B
YAML

name: "Setup project"
description: "Setup Python and Poetry"
runs:
using: composite
steps:
- name: Install apt packages
uses: awalsh128/cache-apt-pkgs-action@latest
with:
packages: gettext
version: 1.0 # increment to reset cache
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
version: "0.5.14"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: "Set up Python"
uses: actions/setup-python@v5
with:
python-version-file: ".python-version"
- name: Install dependencies
run: uv run ./manage.py install_xapian
shell: bash
- name: Compile gettext messages
run: uv run ./manage.py compilemessages
shell: bash