Skip to content

chore(deps): update development dependencies (#689) #459

chore(deps): update development dependencies (#689)

chore(deps): update development dependencies (#689) #459

Workflow file for this run

name: compile-files
on:
push:
branches:
- main
jobs:
compile-files:
runs-on: windows-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"
qml:
- "**/*.qml"
requirements:
- "pyproject.toml"
- "packaging/requirements-flet.in"
- "packaging/requirements-mobile.in"
- "packaging/requirements-pyinstaller.in"
- "packaging/requirements-pywebview.in"
docs:
- "docs/**"
- "mkdocs.yml"
- name: Set up uv
if: steps.changed-files.outputs.po_any_changed == 'true' || steps.changed-files.outputs.qml_any_changed == 'true' || steps.changed-files.outputs.requirements_any_changed == 'true' || steps.changed-files.outputs.docs_any_changed == 'true'
uses: astral-sh/setup-uv@v5
with:
version: "latest"
- name: Compile catalogs
if: steps.changed-files.outputs.po_any_changed == 'true'
run: |
uv venv
uv pip install babel setuptools
cd scripts
uv run python batch_compile_catalog.py
- name: Compile qt resources
if: steps.changed-files.outputs.qml_any_changed == 'true'
run: |
uv venv
uv pip install pyside6
cd scripts
uv run python patch_qt_resource.py
- name: Compile requirements.txt
if: steps.changed-files.outputs.requirements_any_changed == 'true'
run: |
uv pip compile --universal --extra desktop --extra crypto --extra ujson --extra lxml --extra ruamel_yaml -U --no-annotate --no-header pyproject.toml packaging/requirements-pyinstaller.in -o packaging/requirements-desktop.txt
uv pip compile --universal --extra webui --extra crypto --extra ujson --extra lxml --extra ruamel_yaml -U --no-annotate --no-header --no-emit-package httptools pyproject.toml packaging/requirements-pywebview.in packaging/requirements-pyinstaller.in -o packaging/requirements-webui.txt
uv pip compile --universal --extra crypto --extra lxml --extra ruamel_yaml --extra upath -U --python-version 3.12 --no-annotate --no-header pyproject.toml packaging/requirements-flet.in --overrides packaging/requirements-mobile.in -o packaging/requirements-android.txt
- name: Build docs
if: steps.changed-files.outputs.docs_any_changed == 'true'
run: |
uv venv
uv pip install mkdocs-material
uv run mkdocs build
- uses: peaceiris/actions-gh-pages@v4
if: steps.changed-files.outputs.docs_any_changed == 'true'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: site
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: compile files