Skip to content

Commit

Permalink
👷 use uv in translation pr
Browse files Browse the repository at this point in the history
  • Loading branch information
krmax44 committed Sep 16, 2024
1 parent d6bf15c commit c1abb2e
Showing 1 changed file with 11 additions and 14 deletions.
25 changes: 11 additions & 14 deletions .github/workflows/translations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,28 +18,25 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
cache: 'pip'
cache-dependency-path: |
setup.py
requirements.txt
- name: Setup uv
uses: astral-sh/setup-uv@v2
- name: Install system-level dependencies
run: sudo apt-get update && sudo apt-get install libxml2-dev libxslt1-dev python3-dev libgdal-dev gdal-bin libmagic-dev libmagickwand-dev gettext libpoppler-cpp-dev
run: sudo apt-get update && sudo apt-get install gettext
- name: Setup venv
run: uv venv --python 3.12
- name: Install dependencies
run: |
python -m pip install --upgrade pip pip-tools
pip-sync requirements.txt
pip install -e .
run: uv pip install django-admin
- name: Setup Git
run: |
git config user.name "fdsbot"
git config user.email "[email protected]"
- name: Compile translations
run: make messagesde
run: |
source .venv/bin/activate
django-admin -h
make messagesde
- name: Commit translations
run: |
git add **/django.po || true
git commit -m "💬 update translation messages" || true
git push -u origin main:weblate-source --force
# git push -u origin main:weblate-source --force

0 comments on commit c1abb2e

Please sign in to comment.