Skip to content

Commit

Permalink
[CI] Test with C++ and Python managers
Browse files Browse the repository at this point in the history
Part of #40. Update CI tests to make use of SimpleCppManager as a C++
alternative to the Python BasicAssetLibrary (BAL) manager.

Signed-off-by: David Feltell <[email protected]>
  • Loading branch information
feltech committed Aug 21, 2024
1 parent 1583204 commit d828a0c
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/build_openassetio/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ runs:
run: |
cd openassetio-checkout
mkdir build
cmake -G Ninja -S . -B build
cmake -G Ninja -S . -B build -DOPENASSETIO_ENABLE_SIMPLECPPMANAGER=ON
cmake --build build
cmake --install build
Expand Down
23 changes: 16 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,20 @@ jobs:
# LD_LIBRARY_PATH doesn't have /usr/local/lib on it by default
# like you might expect because we're running as root, so we
# just append it (it's so we can find python itself.)
- name: Test
- name: Configure environment
run: |
echo "PXR_PLUGINPATH_NAME=$GITHUB_WORKSPACE/build/dist/resources/plugInfo.json" >> "$GITHUB_ENV"
echo "LD_LIBRARY_PATH=$GITHUB_WORKSPACE/openassetio-build/lib64" >> "$GITHUB_ENV"
echo "PYTHONPATH=/usr/local/lib/python/:$GITHUB_WORKSPACE/openassetio-build/lib/python3.11/site-packages:$GITHUB_WORKSPACE/openassetio-mediacreation-build/lib/python3.11/site-packages" >> "$GITHUB_ENV"
- name: Test (Python manager)
run: |
export "OPENASSETIO_DEFAULT_CONFIG=$GITHUB_WORKSPACE/tests/resources/openassetio_config_python.toml"
python -m pytest -v --capture=tee-sys tests
- name: Test (C++ manager)
run: |
export PXR_PLUGINPATH_NAME=$GITHUB_WORKSPACE/build/dist/resources/plugInfo.json
export LD_LIBRARY_PATH=$GITHUB_WORKSPACE/openassetio-build/lib64
export PYTHONPATH=/usr/local/lib/python/:$GITHUB_WORKSPACE/openassetio-build/lib/python3.11/site-packages:$GITHUB_WORKSPACE/openassetio-mediacreation-build/lib/python3.11/site-packages
export OPENASSETIO_DEFAULT_CONFIG=$GITHUB_WORKSPACE/tests/resources/openassetio_config_python.toml
cd tests
python -m pytest -v --capture=tee-sys .
export "OPENASSETIO_DEFAULT_CONFIG=$GITHUB_WORKSPACE/tests/resources/openassetio_config_cpp.toml"
export "OPENASSETIO_PLUGIN_PATH=$GITHUB_WORKSPACE/openassetio-build"
python -m pytest -v --capture=tee-sys tests

0 comments on commit d828a0c

Please sign in to comment.