Skip to content
Draft
Show file tree
Hide file tree
Changes from 2 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
2 changes: 1 addition & 1 deletion internal/pip-install-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,5 @@ parameters:

steps:
- ${{ if parameters.packages }}:
- bash: pip install ${{ join(' ', parameters.packages) }}
- bash: pip install --upgrade ${{ join(' ', parameters.packages) }}
displayName: Install Python packages - ${{ join(', ', parameters.packages) }}
14 changes: 10 additions & 4 deletions internal/run-tests-with.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@
# not expressly granted therein are reserved by Shotgun Software Inc.

parameters:
# MANDATORY PARAMETERS

# Python version to use.
# python_version: 3.11

# Name of the Qt wrapper to pip install.
# qt_wrapper: PySide2==5.15.2.1

# OPTIONAL PARAMETERS

# Name of the virtual machine image to load.
image_name: ""
# Name of the Qt wrapper to pip install. Should be PySide or PySide2
qt_wrapper: PySide2==5.15.2.1
# Python version to use.
python_version: 3.7
# List of Python packages that need to be pip installed for testing.
extra_test_dependencies: []
# Pretty name for the job.
Expand Down
69 changes: 44 additions & 25 deletions internal/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,16 @@ parameters:
# TODO: At some point, we should review how these environments are enumerated.
# Something like:
#
# parameters:
# parameters: ###. TODO
# variants:
# Linux:
# - Qt: PySide2
# Python: 3.7
# - Qt: PyQt5
#. - VFX CY2021
# Qt: PySide2=5.15
# Python: 3.7
#
# - VFX CY2024
# - Qt: PySide6=6.2
# Python: 3.
Copy link

Copilot AI Nov 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete Python version '3.' in comment example - should be '3.10' or similar complete version number.

Suggested change
# Python: 3.
# Python: 3.7

Copilot uses AI. Check for mistakes.
# macOS:
# - Qt: PySide2
# Python: 3.7
Expand All @@ -64,9 +67,11 @@ jobs:
- ${{ if eq( parameters.has_unit_tests, true ) }}:
- template: run-tests-with.yml
parameters:
image_name: 'windows-2022'
job_name: CY2022 - Windows
image_name: windows-2022
python_version: 3.9
job_name: "Windows"
qt_wrapper: PySide2==5.15.2.1

# pass through all parameters
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -77,9 +82,11 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'macOS-14'
job_name: CY2022 - macOS
image_name: macOS-14
python_version: 3.9
job_name: "macOS"
qt_wrapper: PySide2==5.15.2.1

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -90,9 +97,11 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'ubuntu-22.04'
job_name: CY2022 - Linux
image_name: ubuntu-22.04
python_version: 3.9
job_name: "Linux"
qt_wrapper: PySide2==5.15.2.1

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -104,9 +113,11 @@ jobs:
# -------------------------
- template: run-tests-with.yml
parameters:
image_name: 'windows-2022'
job_name: CY2023 - Windows
image_name: windows-2022
python_version: 3.10
job_name: "Windows"
qt_wrapper: PySide2==5.15.16

# pass through all parameters
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -117,9 +128,11 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'macOS-14'
job_name: CY2023 - macOS
image_name: macOS-14
python_version: 3.10
job_name: "macOS"
qt_wrapper: PySide2==5.15.16

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -130,9 +143,11 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'ubuntu-22.04'
job_name: CY2023 - Linux
image_name: ubuntu-22.04
python_version: 3.10
job_name: "Linux"
qt_wrapper: PySide2==5.15.16

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -144,10 +159,11 @@ jobs:
# -------------------------
- template: run-tests-with.yml
parameters:
image_name: 'windows-2022'
job_name: CY2023 - Windows
image_name: windows-2022
python_version: 3.11
qt_wrapper: PySide6
job_name: "Windows"
qt_wrapper: PySide6~=6.5.8

# pass through all parameters
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -158,10 +174,11 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'macOS-14'
job_name: CY2023 - macOS
image_name: macOS-14
python_version: 3.11
qt_wrapper: PySide6
job_name: "macOS"
qt_wrapper: PySide6~=6.5.8

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand All @@ -172,10 +189,12 @@ jobs:

- template: run-tests-with.yml
parameters:
image_name: 'ubuntu-22.04'
qt_wrapper: PySide6
job_name: CY2023 - Linux
image_name: ubuntu-22.04
qt_wrapper: PySide6~=6.8
# let's try 6.8 on CI...
python_version: 3.11
job_name: "Linux"

# pass through all parameters.
extra_test_dependencies: ${{ parameters.extra_test_dependencies }}
tk_toolchain_ref: ${{ parameters.tk_toolchain_ref }}
Expand Down
Loading