mirror of
https://github.com/eitchtee/WYGIWYH.git
synced 2026-01-11 20:00:26 +01:00
use uv in GH actions
This commit is contained in:
15
.github/workflows/translations.yml
vendored
15
.github/workflows/translations.yml
vendored
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user