From 21c02e415aa07a6b9ac8add469eb03b6ddb1c754 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 13 May 2024 21:06:01 +0200 Subject: [PATCH 1/2] fix(ci): fix translation build --- .github/workflows/build_release.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index ae0c137d..39696824 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -24,13 +24,20 @@ 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 + run: pylupdate5 -noobsolete -verbose ${{ env.PROJECT_FOLDER }}/resources/i18n/plugin_translation.pro - name: Compile translations run: lrelease ${{ env.PROJECT_FOLDER }}/resources/i18n/*.ts From 230e876d2e98498fa701ab803a7451dbb784fe72 Mon Sep 17 00:00:00 2001 From: GeoJulien Date: Mon, 13 May 2024 22:26:30 +0200 Subject: [PATCH 2/2] fix(ci): store translation deps in requirements/translation.txt --- .github/workflows/build_release.yml | 1 + requirements/base.txt | 5 ----- requirements/translation.txt | 1 + 3 files changed, 2 insertions(+), 5 deletions(-) delete mode 100644 requirements/base.txt create mode 100644 requirements/translation.txt diff --git a/.github/workflows/build_release.yml b/.github/workflows/build_release.yml index 39696824..6175c156 100644 --- a/.github/workflows/build_release.yml +++ b/.github/workflows/build_release.yml @@ -29,6 +29,7 @@ jobs: with: python-version: ${{ env.PYTHON_VERSION }} cache: "pip" + cache-dependency-path: "requirements/translation.txt" - name: Install system requirements run: | diff --git a/requirements/base.txt b/requirements/base.txt deleted file mode 100644 index 8afa595c..00000000 --- a/requirements/base.txt +++ /dev/null @@ -1,5 +0,0 @@ -# Common requirements -# ----------------------- - -setuptools -wheel diff --git a/requirements/translation.txt b/requirements/translation.txt new file mode 100644 index 00000000..7619e210 --- /dev/null +++ b/requirements/translation.txt @@ -0,0 +1 @@ +pyqt5-tools