Fix aitbc-cli build in CI - add root-level package support
Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Failing after 5s
package-tests / test-python-packages (map[name:aitbc-cli path:. python_version:3.13]) (push) Failing after 4s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Failing after 6s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Failing after 19s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 15s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 18s
package-tests / cross-language-compatibility (push) Has been skipped
package-tests / package-integration-tests (push) Has been skipped
security-scanning / audit (push) Successful in 8s

This commit is contained in:
aitbc1
2026-03-28 11:08:40 +01:00
parent 8cac82d959
commit 7f5d8ed874

View File

@@ -25,6 +25,9 @@ jobs:
strategy:
matrix:
package:
- name: "aitbc-cli"
path: "."
python_version: "3.13"
- name: "aitbc-core"
path: "packages/py/aitbc-core"
python_version: "3.13"
@@ -519,11 +522,18 @@ jobs:
echo "=== BUILDING PYTHON PACKAGE ==="
cd /opt/aitbc/python-packages-workspace/repo/${{ matrix.package.path }}
# Ensure Poetry is available
export PATH="$HOME/.local/bin:$PATH"
# Build package with Poetry
poetry build
# For root-level packages (like aitbc-cli), use python build instead of poetry
if [[ "${{ matrix.package.path }}" == "." ]]; then
echo "Building root-level package with python -m build..."
python3 -m pip install build -q
python3 -m build
else
# Ensure Poetry is available
export PATH="$HOME/.local/bin:$PATH"
# Build package with Poetry
poetry build
fi
# Check build output
ls -la dist/