-
Notifications
You must be signed in to change notification settings - Fork 203
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test pipeline fixes and refresh. (#1305)
- Loading branch information
Showing
7 changed files
with
85 additions
and
58 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/bin/bash | ||
|
||
# Script for running OpenCue unit tests with PySide6. | ||
# | ||
# This script is written to be run within the OpenCue GitHub Actions environment. | ||
# See `.github/workflows/testing-pipeline.yml`. | ||
|
||
set -e | ||
|
||
python_version=$(python -V 2>&1) | ||
echo "Will run tests using ${python_version}" | ||
|
||
# NOTE: To run this in an almalinux environment, install these packages: | ||
# yum -y install \ | ||
# dbus-libs \ | ||
# fontconfig \ | ||
# gcc \ | ||
# libxkbcommon-x11 \ | ||
# mesa-libEGL-devel \ | ||
# python-devel \ | ||
# which \ | ||
# xcb-util-keysyms \ | ||
# xcb-util-image \ | ||
# xcb-util-renderutil \ | ||
# xcb-util-wm \ | ||
# Xvfb | ||
|
||
# Install Python requirements. | ||
python3 -m pip install --user -r requirements.txt -r requirements_gui.txt | ||
# Replace PySide2 with PySide6. | ||
python3 -m pip uninstall -y PySide2 | ||
python3 -m pip install --user PySide6==6.3.2 | ||
|
||
# Protos need to have their Python code generated in order for tests to pass. | ||
python -m grpc_tools.protoc -I=proto/ --python_out=pycue/opencue/compiled_proto --grpc_python_out=pycue/opencue/compiled_proto proto/*.proto | ||
python -m grpc_tools.protoc -I=proto/ --python_out=rqd/rqd/compiled_proto --grpc_python_out=rqd/rqd/compiled_proto proto/*.proto | ||
|
||
# Fix compiled proto code for Python 3. | ||
2to3 -wn -f import pycue/opencue/compiled_proto/*_pb2*.py | ||
2to3 -wn -f import rqd/rqd/compiled_proto/*_pb2*.py | ||
|
||
python pycue/setup.py test | ||
PYTHONPATH=pycue python pyoutline/setup.py test | ||
PYTHONPATH=pycue python cueadmin/setup.py test | ||
PYTHONPATH=pycue:pyoutline python cuesubmit/setup.py test | ||
python rqd/setup.py test | ||
|
||
ci/run_gui_test.sh |
This file contains 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
This file contains 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
This file contains 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
This file contains 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