Skip to content

Commit

Permalink
one more fix
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkulaga committed Nov 27, 2024
1 parent f09b38c commit 3445b44
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ jobs:
if [ -d "examples" ]; then cd examples && poetry install --with dev; fi
- name: Run tests
run: poetry run python -m pytest
run: poetry run python -m pytest
working-directory: .
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ for package in "tools" "coding" "web" "router" "examples"; do
done

# Finally build the meta-package
poetry build
build_package "./"

echo "All packages built!"
12 changes: 10 additions & 2 deletions bin/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ poetry config pypi-token.pypi $PYPI_TOKEN
version=$(cd core && poetry version -s)
echo "Publishing version $version"

for pkg in "tools" "coding" "web" "router" "examples"; do
# Add just-agents to the package list
for pkg in "tools" "coding" "web" "router" "examples" "."; do
pkg_version=$(cd $pkg && poetry version -s)
if [ "$pkg_version" != "$version" ]; then
echo "Error: Version mismatch in $pkg ($pkg_version != $version)"
Expand All @@ -66,9 +67,16 @@ if ! publish_package "core"; then
fi

# Then publish the components that depend on core
# Add just-agents to this list as well
for package in "tools" "coding" "web" "router" "examples"; do
if ! publish_package $package; then
echo "Failed to publish $package package. Aborting."
exit 1
fi
done
done

# Finally publish the meta-package
#if ! publish_package "."; then
# echo "Failed to publish just-agents meta-package. Aborting."
# exit 1
#fi
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ just-agents-coding = { path = "coding", develop = true }
just-agents-web = { path = "web", develop = true }
just-agents-router = { path = "router", develop = true }

[tool.poetry.group.publish.dependencies]
just-agents-core = "0.4.1"
just-agents-tools = "0.4.1"
just-agents-coding = "0.4.1"
just-agents-web = "0.4.1"
just-agents-router = "0.4.1"

[tool.poetry.group.dev.dependencies]
pytest = "^7.4.4"
python-dotenv = "*"
Expand Down

0 comments on commit 3445b44

Please sign in to comment.