WIP: Test improve caching #13
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Makemessages | |
on: | |
workflow_dispatch: | |
jobs: | |
makemessages: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install APT Dependencies | |
run: sudo apt-get install gettext | |
- name: Install Python Dependencies | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.12' | |
cache: "pip" | |
cache-dependency-path: 'requirements*.txt' | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Make messages cs | |
run: | | |
source venv/bin/activate | |
cd svjis | |
python manage.py makemessages -l cs | |
python manage.py compilemessages | |
- name: Archive messages cs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Messages cs | |
path: svjis/articles/locale/cs/* | |
- name: Make messages en | |
run: | | |
source venv/bin/activate | |
cd svjis | |
python manage.py makemessages -l en | |
python manage.py compilemessages | |
- name: Archive messages en | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Messages en | |
path: svjis/articles/locale/en/* |