Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 8 additions & 6 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.9', '3.10']
pyqt-version: [5.12.3, 5.15.9]
exclude:
- os: macos-latest
pyqt-version: 5.12.3 # Version 5.12.3 of PyQT is not available for osx-arm64
env:
DISPLAY: ':99.0'
QT_MAC_WANTS_LAYER: 1 # PyQT gui tests involving qtbot interaction on macOS will fail without this
Expand All @@ -36,26 +39,25 @@ jobs:
miniforge-version: latest
activate-environment: pydm-env
conda-remove-defaults: true
architecture: x64 # Ensure macOS finds PyQt 5.12.3 which isn't available with osx-arm64

- name: Install PyDM with Mamba
shell: bash -el {0}
run: |
if [ "$RUNNER_OS" == "Windows" ]; then
conda install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }}
elif [ "$RUNNER_OS" == "macOS" ]; then
mamba install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }} git p4p pyca
mamba install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }} git
else
mamba install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }} pyca
mamba install -c conda-forge pydm pyqt=${{ matrix.pyqt-version }}
fi

- name: Install additional Python dependencies with pip
shell: bash -el {0}
run: |
if [ "$RUNNER_OS" == "Linux" ]; then
pip install .[test]
else
if [ "$RUNNER_OS" == "Windows" ]; then
pip install .[test-no-optional]
else
pip install .[test]
fi

- name: Install packages for testing a PyQt app on Linux
Expand Down
1 change: 1 addition & 0 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ pytest-cov
pytest-timeout
p4p
pre-commit
pyca-epics
Loading