Update default Python to 3.14 (#2786) #3350
This file contains hidden or 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: Linux | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - release | |
| pull_request: | |
| branches: | |
| - main | |
| - release | |
| jobs: | |
| testLinux: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| fail-fast: false | |
| name: Test Python ${{ matrix.python-version }} | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout Source | |
| uses: actions/checkout@v7 | |
| - name: Install System Packages | |
| run: | | |
| sudo apt update | |
| sudo apt install qttools5-dev-tools | |
| - name: Install UV and Python | |
| uses: astral-sh/setup-uv@v8.2.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| enable-cache: true | |
| - name: Install Dependencies | |
| run: | | |
| uv sync --no-dev --group test | |
| - name: Build Assets | |
| run: | | |
| uv run --no-sync pkgutils.py qtlrelease | |
| uv run --no-sync pkgutils.py sample | |
| - name: Run Tests | |
| run: | | |
| export QT_QPA_PLATFORM=offscreen | |
| uv run --no-sync coverage run -m pytest -v --timeout=60 | |
| uv run --no-sync coverage xml | |
| - name: Upload to Codecov | |
| uses: codecov/codecov-action@v5 | |
| with: | |
| token: ${{ secrets.CODECOV_TOKEN }} | |
| fail_ci_if_error: true | |
| testUbuntu24: | |
| name: Test Ubuntu 24.04 & Sys Packages | |
| runs-on: ubuntu-24.04 | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout Source | |
| uses: actions/checkout@v7 | |
| - name: Install System Packages | |
| run: | | |
| sudo apt update | |
| sudo apt install \ | |
| python3-pyqt6 \ | |
| python3-pyqt6.qtsvg \ | |
| python3-pytest \ | |
| python3-pytestqt \ | |
| python3-enchant \ | |
| python3-pytest-timeout \ | |
| qt6-image-formats-plugins | |
| - name: Build Assets | |
| run: | | |
| python3 pkgutils.py sample | |
| - name: Run Tests | |
| run: | | |
| export QT_QPA_PLATFORM=offscreen | |
| python3 -m pytest -v --timeout=60 |