|
19 | 19 | fail-fast: false
|
20 | 20 | matrix:
|
21 | 21 | os: [ubuntu-latest, windows-latest, macos-latest]
|
22 |
| - python-version: ['3.9', '3.10'] |
23 |
| - pyqt-version: [5.12.3, 5.15.9] |
| 22 | + python-version: ['3.10'] |
24 | 23 | env:
|
25 | 24 | DISPLAY: ':99.0'
|
26 | 25 | QT_MAC_WANTS_LAYER: 1 # PyQT gui tests involving qtbot interaction on macOS will fail without this
|
|
49 | 48 | conda-remove-defaults: true
|
50 | 49 | architecture: x64 # Ensure macOS finds PyQt 5.12.3 which isn't available with osx-arm64
|
51 | 50 |
|
52 |
| - - name: Install PyQt5 and PyDM with Mamba (if windows use conda) |
53 |
| - shell: bash -el {0} |
54 |
| - run: | |
55 |
| - if [ "$RUNNER_OS" == "Windows" ]; then |
56 |
| - conda install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }} |
57 |
| - else |
58 |
| - mamba install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }} |
59 |
| - fi |
60 |
| -
|
61 |
| - - name: Install additional Python dependencies with pip for PyQt5 |
62 |
| - shell: bash -el {0} |
63 |
| - run: | |
64 |
| - pip install -r requirements.txt |
65 |
| - if [ "$RUNNER_OS" == "Windows" ]; then |
66 |
| - pip install -r windows-dev-requirements.txt |
67 |
| - else |
68 |
| - pip install -r dev-requirements.txt |
69 |
| - fi |
70 |
| - |
71 |
| - - name: Run PyQt tests with pytest |
72 |
| - env: |
73 |
| - QT_API: pyqt5 |
74 |
| - shell: bash -el {0} |
75 |
| - timeout-minutes: 30 # timeout applies to single run of run_tests.py, not all os/python combos |
76 |
| - run: | |
77 |
| - echo "Running PyQt tests with QT_API=$QT_API" |
78 |
| - python -c "import PyQt5.QtCore; print('PyQt5 is installed and working')" |
79 |
| - python run_tests.py |
80 |
| -
|
81 |
| - - name: Remove existing Miniconda installation on Windows (error workaround) |
82 |
| - if: runner.os == 'Windows' |
83 |
| - shell: powershell |
84 |
| - run: | |
85 |
| - $condaPath = "C:\Users\runneradmin\miniconda3" |
86 |
| - if (Test-Path $condaPath) { |
87 |
| - Remove-Item -Recurse -Force $condaPath |
88 |
| - } |
89 |
| -
|
90 | 51 | - name: Setup Conda and install PySide6
|
91 | 52 | uses: conda-incubator/setup-miniconda@v3
|
92 | 53 | with:
|
|
95 | 56 | miniforge-version: latest
|
96 | 57 | activate-environment: pyside-env
|
97 | 58 | conda-remove-defaults: true
|
98 |
| - architecture: x64 # Ensure macOS finds PyQt 5.12.3 which isn't available with osx-arm64 |
| 59 | + architecture: x64 |
99 | 60 | auto-update-conda: true
|
100 | 61 |
|
101 | 62 | - name: Install PySide6 and PyDM with Mamba (if windows use conda)
|
|
0 commit comments