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