use uv in GH actions

This commit is contained in:
icovada
2025-12-21 17:28:45 +01:00
parent 5eaf5086d2
commit 7e08028557

View File

@@ -32,15 +32,16 @@ jobs:
token: ${{ secrets.PAT }} token: ${{ secrets.PAT }}
ref: ${{ github.head_ref }} ref: ${{ github.head_ref }}
- name: Set up Python 3.11 - name: Install uv
uses: actions/setup-python@v4 uses: astral-sh/setup-uv@v5
with: with:
python-version: '3.11' enable-cache: true
- name: Set up Python 3.11
run: uv python install 3.11
- name: Install dependencies - name: Install dependencies
run: | run: uv sync --frozen --no-dev
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install gettext - name: Install gettext
run: sudo apt-get install -y gettext run: sudo apt-get install -y gettext
@@ -48,7 +49,7 @@ jobs:
- name: Run makemessages - name: Run makemessages
run: | run: |
cd app cd app
python manage.py makemessages -a uv run python manage.py makemessages -a
- name: Check for changes - name: Check for changes
id: check_changes id: check_changes