tssln: update model to 1.12 #174
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: compile-files | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
compile-files: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Get changed files | |
id: changed-files | |
uses: tj-actions/changed-files@v45 | |
with: | |
files_yaml: | | |
po: | |
- "**/LC_MESSAGES/*.po" | |
requirements: | |
- "pyproject.toml" | |
- "packaging/requirements-pyinstaller.in" | |
- name: Set up Python | |
if: steps.changed-files.outputs.po_any_changed == 'true' || steps.changed-files.outputs.requirements_any_changed == 'true' | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
- name: Compile catalogs | |
if: steps.changed-files.outputs.po_any_changed == 'true' | |
run: | | |
pip install babel setuptools | |
cd scripts | |
python batch_compile_catalog.py | |
- name: Compile requirements.txt | |
if: steps.changed-files.outputs.requirements_any_changed == 'true' | |
run: | | |
pip install uv | |
uv pip compile --universal --extra desktop --extra ujson --extra lxml --extra ruamel_yaml -U --no-annotate --no-header pyproject.toml packaging/requirements-pyinstaller.in -o packaging/requirements.txt | |
- name: Commit changes | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: compile files |