Skip to content

Commit 162da54

Browse files
committed
revert name
1 parent 4bebbd2 commit 162da54

File tree

28 files changed

+367
-200
lines changed

28 files changed

+367
-200
lines changed

.github/workflows/agentex-tutorials-test.yml renamed to .github/workflows/main.yml

Lines changed: 44 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,24 @@ jobs:
2020
- name: Check for changes in tutorials directory
2121
id: check
2222
run: |
23-
# For testing: hardcode 10_agentic/00_base/000_hello_acp tutorial
24-
echo "changed-tutorials=[\"10_agentic/00_base/000_hello_acp\"]" >> $GITHUB_OUTPUT
23+
# Find all tutorials with manifest.yaml files
24+
TUTORIALS=$(find examples/tutorials -name "manifest.yaml" -type f | \
25+
sed 's|examples/tutorials/||' | \
26+
sed 's|/manifest.yaml||' | \
27+
jq -R -s -c 'split("\n") | map(select(length > 0))')
2528
26-
build-and-push-tutorial-agents:
27-
needs: detect-changes
29+
echo "Found tutorials: $TUTORIALS"
30+
echo "changed-tutorials=$TUTORIALS" >> $GITHUB_OUTPUT
31+
32+
build-tutorial-agent:
33+
needs: [detect-changes]
2834
runs-on: ubuntu-latest
2935
if: needs.detect-changes.outputs.changed-tutorials != '[]'
36+
strategy:
37+
matrix:
38+
tutorial: ${{ fromJson(needs.detect-changes.outputs.changed-tutorials) }}
39+
fail-fast: false
40+
max-parallel: 10
3041
steps:
3142
- name: Checkout code
3243
uses: actions/checkout@v3
@@ -49,65 +60,60 @@ jobs:
4960
- name: Build and install agentex SDK (same as release)
5061
run: |
5162
rye build --clean
52-
5363
# Get the wheel filename
5464
WHEEL_FILE=$(ls dist/*.whl | head -n 1)
5565
echo "Built wheel: $WHEEL_FILE"
56-
5766
# Install the wheel to make the CLI available
5867
pip install "$WHEEL_FILE"
59-
6068
# Verify CLI is available
61-
agentex --version
62-
69+
agentex --help | head -n 5
6370
# Store wheel path for later use if needed
6471
echo "AGENTEX_WHEEL=$WHEEL_FILE" >> $GITHUB_ENV
6572
6673
- name: Login to Docker Hub
6774
uses: docker/login-action@v3
6875
with:
6976
username: ${{ vars.DOCKERHUB_USERNAME }}
70-
password: ${{ secrets.DOCKERHUB_TOKEN }}
77+
password: ${{ secrets.DOCKERHUB_PASSWORD }}
7178

72-
# Set up Docker Buildx
7379
- name: Set up Docker Buildx
7480
uses: docker/setup-buildx-action@v3
7581

76-
- name: Build tutorial agent images
77-
run: |
78-
# Get list of changed tutorials from detect-changes job output
79-
CHANGED_TUTORIALS='${{ needs.detect-changes.outputs.changed-tutorials }}'
80-
echo "Changed tutorials: $CHANGED_TUTORIALS"
82+
- name: Checkout code
83+
uses: actions/checkout@v3
84+
with:
85+
ref: ${{ github.event.pull_request.head.sha || github.sha }}
8186

82-
# Parse the JSON array and build each tutorial
83-
echo "$CHANGED_TUTORIALS" | jq -r '.[]' | while read -r tutorial; do
84-
echo "🔨 Building tutorial: $tutorial"
87+
- name: Build and push tutorial agent
88+
run: |
89+
TUTORIAL="${{ matrix.tutorial }}"
90+
echo "🔨 Building tutorial: $TUTORIAL"
8591
86-
TUTORIAL_PATH="examples/tutorials/$tutorial"
92+
TUTORIAL_PATH="examples/tutorials/$TUTORIAL"
8793
88-
if [ -f "$TUTORIAL_PATH/manifest.yaml" ]; then
89-
echo "📦 Building with agentex CLI..."
94+
if [ -f "$TUTORIAL_PATH/manifest.yaml" ]; then
95+
echo "📦 Building with agentex CLI..."
9096
91-
# Extract the last folder name from the tutorial path
92-
TAG_NAME=$(basename "$tutorial")
97+
# Extract the last folder name from the tutorial path
98+
TAG_NAME=$(basename "$TUTORIAL")
9399
94-
# Build and push with agentex agents build command
95-
agentex agents build \
96-
--manifest "$TUTORIAL_PATH/manifest.yaml" \
97-
--registry "docker.io" \
98-
--repository-name "${{ vars.DOCKERHUB_USERNAME }}/agentex-tutorials" \
99-
--tag "${TAG_NAME}-stable-release" \
100-
--push
100+
# Build and push with agentex agents build command
101+
agentex agents build \
102+
--manifest "$TUTORIAL_PATH/manifest.yaml" \
103+
--registry "docker.io" \
104+
--repository-name "${{ vars.DOCKERHUB_USERNAME }}/agentex-tutorials" \
105+
--tag "${TAG_NAME}-stable-release" \
106+
--push
101107
102-
echo "✅ Successfully built and pushed: ${{ vars.DOCKERHUB_USERNAME }}/agentex-tutorials:${TAG_NAME}-stable-release"
103-
else
104-
echo "⚠️ No manifest.yaml found in $TUTORIAL_PATH, skipping..."
105-
fi
106-
done
108+
echo "✅ Successfully built and pushed: ${{ vars.DOCKERHUB_USERNAME }}/agentex-tutorials:${TAG_NAME}-stable-release"
109+
else
110+
echo "⚠️ No manifest.yaml found in $TUTORIAL_PATH, skipping..."
111+
exit 1
112+
fi
107113
108114
run-agentex-tests:
109115
runs-on: ubuntu-latest
110-
if: needs.detect-changes.outputs.changed-tutorials != "run"
116+
if: false # Disabled - not running this job for now
111117
steps:
112118
- name: Checkout code
113119
uses: actions/checkout@v3
@@ -139,7 +145,7 @@ jobs:
139145
pip install "$WHEEL_FILE"
140146
141147
# Verify CLI is available
142-
agentex --version
148+
agentex --help | head -n 5
143149
144150
# Store wheel path for later use if needed
145151
echo "AGENTEX_WHEEL=$WHEEL_FILE" >> $GITHUB_ENV

.github/workflows/publish-pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ jobs:
2121
curl -sSf https://rye.astral.sh/get | bash
2222
echo "$HOME/.rye/shims" >> $GITHUB_PATH
2323
env:
24-
RYE_VERSION: '0.44.0'
25-
RYE_INSTALL_OPTION: '--yes'
24+
RYE_VERSION: "0.44.0"
25+
RYE_INSTALL_OPTION: "--yes"
2626

2727
- name: Publish to PyPI
2828
run: |

examples/tutorials/00_sync/000_hello_acp/Dockerfile

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,17 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 000_hello_acp/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
27+
COPY 000_hello_acp/README.md /app/000_hello_acp/README.md
2728

28-
WORKDIR /app/
29-
30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
29+
WORKDIR /app/000_hello_acp
3230

3331
# Copy the project code
34-
COPY 000_hello_acp/project /app/project
32+
COPY 000_hello_acp/project /app/000_hello_acp/project
33+
34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3536

3637
# Set environment variables
3738
ENV PYTHONPATH=/app

examples/tutorials/00_sync/010_multiturn/Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 010_multiturn/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
27+
COPY 010_multiturn/README.md /app/010_multiturn/README.md
2728

28-
WORKDIR /app/
29-
30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
29+
WORKDIR /app/010_multiturn
3230

3331
# Copy the project code
34-
COPY 010_multiturn/project /app/project
32+
COPY 010_multiturn/project /app/010_multiturn/project
33+
34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3536

37+
WORKDIR /app/010_multiturn
3638
# Set environment variables
3739
ENV PYTHONPATH=/app
3840

3941
# Run the agent using uvicorn
40-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
42+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/00_sync/020_streaming/Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,17 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 020_streaming/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
27+
COPY 020_streaming/README.md /app/020_streaming/README.md
2728

28-
WORKDIR /app/
29+
WORKDIR /app/020_streaming
2930

30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
3231
# Copy the project code
33-
COPY 020_streaming/project /app/project
32+
COPY 020_streaming/project /app/020_streaming/project
33+
34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3436

3537
# Set environment variables
3638
ENV PYTHONPATH=/app

examples/tutorials/10_agentic/00_base/000_hello_acp/Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 000_hello_acp/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 000_hello_acp/pyproject.toml /app/000_hello_acp/pyproject.toml
27+
COPY 000_hello_acp/README.md /app/000_hello_acp/README.md
2728

28-
WORKDIR /app/
29-
30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
29+
WORKDIR /app/000_hello_acp
3230

3331
# Copy the project code
34-
COPY 000_hello_acp/project /app/project
32+
COPY 000_hello_acp/project /app/000_hello_acp/project
33+
34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3536

37+
WORKDIR /app/000_hello_acp
3638
# Set environment variables
3739
ENV PYTHONPATH=/app
3840

3941
# Run the agent using uvicorn
40-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
42+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/010_multiturn/Dockerfile

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,21 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 010_multiturn/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 010_multiturn/pyproject.toml /app/010_multiturn/pyproject.toml
27+
COPY 010_multiturn/README.md /app/010_multiturn/README.md
2728

28-
WORKDIR /app/
29+
WORKDIR /app/010_multiturn
2930

30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
31+
COPY 010_multiturn/project /app/010_multiturn/project
3232

33-
# Copy the project code
34-
COPY 010_multiturn/project /app/project
33+
# Install the required Python packages from pyproject.toml
34+
RUN uv pip install --system .
35+
36+
WORKDIR /app/010_multiturn
3537

3638
# Set environment variables
3739
ENV PYTHONPATH=/app
3840

3941
# Run the agent using uvicorn
40-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
42+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/020_streaming/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,19 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 020_streaming/requirements.txt /app/020_streaming/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 020_streaming/pyproject.toml /app/020_streaming/pyproject.toml
27+
COPY 020_streaming/README.md /app/020_streaming/README.md
2728

28-
WORKDIR /app/
29+
WORKDIR /app/020_streaming
2930

30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
32-
3331
# Copy the project code
34-
COPY 020_streaming/project /app/project
32+
COPY 020_streaming/project /app/020_streaming/project
3533

34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3636
# Set environment variables
3737
ENV PYTHONPATH=/app
3838

3939
# Run the agent using uvicorn
40-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
40+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/030_tracing/Dockerfile

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 030_tracing/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 030_tracing/pyproject.toml /app/030_tracing/pyproject.toml
27+
COPY 030_tracing/README.md /app/030_tracing/README.md
2728

28-
WORKDIR /app/
29-
30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
29+
WORKDIR /app/030_tracing
3230

3331
# Copy the project code
34-
COPY 030_tracing/project /app/project
32+
COPY 030_tracing/project /app/030_tracing/project
3533

34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3636

3737
# Set environment variables
3838
ENV PYTHONPATH=/app
3939

4040
# Run the agent using uvicorn
41-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
41+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

examples/tutorials/10_agentic/00_base/040_other_sdks/Dockerfile

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,20 @@ RUN uv pip install --system --upgrade pip setuptools wheel
2222

2323
ENV UV_HTTP_TIMEOUT=1000
2424

25-
# Copy just the requirements file to optimize caching
26-
COPY 040_other_sdks/requirements.txt /app/requirements.txt
25+
# Copy pyproject.toml and README.md to install dependencies
26+
COPY 040_other_sdks/pyproject.toml /app/040_other_sdks/pyproject.toml
27+
COPY 040_other_sdks/README.md /app/040_other_sdks/README.md
2728

28-
WORKDIR /app/
29-
30-
# Install the required Python packages
31-
RUN uv pip install --system -r requirements.txt
29+
WORKDIR /app/040_other_sdks
3230

3331
# Copy the project code
34-
COPY 040_other_sdks/project /app/project
32+
COPY 040_other_sdks/project /app/040_other_sdks/project
33+
34+
# Install the required Python packages from pyproject.toml
35+
RUN uv pip install --system .
3536

3637
# Set environment variables
3738
ENV PYTHONPATH=/app
3839

3940
# Run the agent using uvicorn
40-
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]
41+
CMD ["uvicorn", "project.acp:acp", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)