From 9eda583489fb25e8b5a930f102cac289d54efa2f Mon Sep 17 00:00:00 2001 From: "Julien M." Date: Wed, 13 Mar 2024 13:54:33 +0100 Subject: [PATCH 1/2] ci: fix i18n compilation --- .github/workflows/linter.yml | 6 ++++-- .github/workflows/packager.yml | 13 +++++++++++-- 2 files changed, 15 insertions(+), 4 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index a95dbc0f..18828aec 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -2,12 +2,14 @@ name: "✅ Linter" on: push: - branches: [main] + branches: + - main paths: - "**.py" pull_request: - branches: [main] + branches: + - main paths: - "**.py" diff --git a/.github/workflows/packager.yml b/.github/workflows/packager.yml index 572066ba..5c69177f 100644 --- a/.github/workflows/packager.yml +++ b/.github/workflows/packager.yml @@ -6,12 +6,14 @@ env: on: push: - branches: [main] + branches: + - main tags: - "*" pull_request: - branches: [main] + branches: + - main paths: - .github/workflows/packager.yml @@ -24,10 +26,17 @@ jobs: - name: Get source code uses: actions/checkout@v4 + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: ${{ env.PYTHON_VERSION }} + cache: "pip" + - name: Install system requirements run: | sudo apt update sudo apt install qt5-qmake qttools5-dev-tools + python3 -m pip install -U pyqt5-tools - name: Update translations run: lupdate -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro From b689fcdbceacee88b6713403181819d2c67ea7e7 Mon Sep 17 00:00:00 2001 From: "Julien M." Date: Wed, 13 Mar 2024 13:58:25 +0100 Subject: [PATCH 2/2] i18n: use pylupdate5 instead of lupdate --- .github/workflows/packager.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/packager.yml b/.github/workflows/packager.yml index 5c69177f..0e8ac4ed 100644 --- a/.github/workflows/packager.yml +++ b/.github/workflows/packager.yml @@ -39,7 +39,7 @@ jobs: python3 -m pip install -U pyqt5-tools - name: Update translations - run: lupdate -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro + run: pylupdate5 -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro - name: Compile translations run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts