Merge pull request #222 from lcduong/sync-upstream-oct #42
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: Strings | |
on: | |
push: | |
branches: [ development ] | |
paths: | |
- 'src/pretalx/locale/**' | |
pull_request: | |
branches: [ development ] | |
paths: | |
- 'src/pretalx/locale/**' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
compile: | |
runs-on: ubuntu-latest | |
name: Check that translation files compile | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: ".github/workflows/python-version.txt" | |
cache: "pip" | |
- name: Install system dependencies | |
run: | | |
sudo apt update | |
sudo apt install gettext | |
- name: Install Python dependencies | |
run: python -m pip install -e ".[dev]" polib | |
- name: Compile locales | |
run: python manage.py compilemessages | |
working-directory: ./src |