Skip to content

Commit 9e0801e

Browse files
committed
ci: add PyQt6 checker workflow job
1 parent 86bf100 commit 9e0801e

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/continuous_integration.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,33 @@ jobs:
1818
run: |
1919
pipenv install pre_commit
2020
pipenv run python -m pre_commit run --all-files
21+
22+
pyqt6-check:
23+
name: PyQt6 compatibility check
24+
runs-on: ubuntu-latest
25+
container:
26+
image: registry.gitlab.com/oslandia/qgis/pyqgis-4-checker/pyqgis-qt-checker:latest
27+
volumes:
28+
- /tmp/.X11-unix:/tmp/.X11-unix
29+
- ${{ github.workspace }}:/home/pyqgisdev/
30+
options: --user root
31+
steps:
32+
- name: Get source code
33+
uses: actions/checkout@v6
34+
35+
- name: Check PyQt5 to PyQt6 compatibility
36+
run: |
37+
pyqt5_to_pyqt6.py --dry_run libqfieldsync/
38+
pyqt5_to_pyqt6.py --logfile pyqt6_checker.log libqfieldsync/
39+
40+
- name: Upload script report if script fails
41+
uses: actions/upload-artifact@v6
42+
if: ${{ failure() }}
43+
with:
44+
name: pyqt6-checker-error-report
45+
path: pyqt6_checker.log
46+
retention-days: 7
47+
2148
test:
2249
runs-on: ubuntu-22.04
2350
strategy:

0 commit comments

Comments
 (0)