Add pyproject.toml check before Poetry commands - skip packages with only setup.py
Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Successful in 13s
package-tests / test-python-packages (map[name:aitbc-cli path:. python_version:3.13]) (push) Successful in 12s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Successful in 10s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Successful in 12s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 12s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 15s
package-tests / cross-language-compatibility (push) Successful in 4s
security-scanning / audit (push) Successful in 12s
package-tests / package-integration-tests (push) Failing after 3s

This commit is contained in:
aitbc1
2026-03-28 12:59:15 +01:00
parent 1baf038cc5
commit 1d14572a01

View File

@@ -450,6 +450,13 @@ jobs:
}
fi
# Check if pyproject.toml exists (required for poetry)
if [[ ! -f "/opt/aitbc/python-packages-workspace/repo/${{ matrix.package.path }}/pyproject.toml" ]]; then
echo "⚠️ No pyproject.toml found, skipping Poetry dependency installation"
echo "Package has setup.py only - dependencies will be installed during build"
exit 0
fi
# Check and update lock file if needed
echo "Checking Poetry lock file..."
# Ensure we're in a valid directory before running poetry