Skip to content

Commit 81a9483

Browse files
committed
only test pulling images
1 parent 430bab1 commit 81a9483

File tree

2 files changed

+55
-42
lines changed

2 files changed

+55
-42
lines changed

.github/workflows/build-agentex.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# .github/workflows/release.yml
1+
# .github/workflows/build-agentex.yml
22
name: Release AgentEx
33

44
on:

.github/workflows/integration-tests.yml

Lines changed: 54 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,14 @@ on:
1010
default: main
1111

1212
jobs:
13-
build-images:
14-
name: "Build AgentEx Images"
15-
uses: ./.github/workflows/build-agentex.yml
16-
with:
17-
commit-sha: ${{ inputs.commit-sha || 'main' }}
18-
13+
# build-images:
14+
# name: "Build AgentEx Images"
15+
# uses: ./.github/workflows/build-agentex.yml
16+
# with:
17+
# commit-sha: ${{ inputs.commit-sha || 'main' }}
18+
#
1919
pull-agent-images:
2020
name: "Pull AgentEx Images"
21-
needs: build-images
2221
runs-on: ubuntu-latest
2322
steps:
2423
- name: Login to GitHub Container Registry
@@ -28,44 +27,58 @@ jobs:
2827
username: ${{ github.repository_owner }}
2928
password: ${{ secrets.GITHUB_TOKEN }}
3029

31-
- name: Discover available images
32-
id: discover
30+
- name: Discover and pull agentex-python packages
31+
env:
32+
GH_TOKEN: ${{ github.token }}
3333
run: |
34-
echo "🔍 Discovering available images..."
34+
echo "🔍 Discovering packages from agentex-python repo..."
3535
36-
# Get packages, excluding the current repo to avoid conflicts
37-
PACKAGES=$(gh api repos/scaleapi/agentex-python/packages?package_type=container --jq '.[].name') echo "📦 Available packages:"
38-
echo "$PACKAGES"
36+
# Get package names using the API query
37+
PACKAGES=$(gh api "orgs/scaleapi/packages?package_type=container" --jq '.[] | select(.repository.name == "agentex-python") | .name')
3938
40-
# Store for other jobs
41-
echo "images<<EOF" >> $GITHUB_OUTPUT
42-
echo "$PACKAGES" >> $GITHUB_OUTPUT
43-
echo "EOF" >> $GITHUB_OUTPUT
39+
if [ -z "$PACKAGES" ]; then
40+
echo "❌ No packages found in agentex-python repo"
41+
exit 0
42+
fi
4443
45-
# # Pull images
46-
# for package in $PACKAGES; do
47-
# echo "🐳 Pulling ghcr.io/${{ github.repository_owner }}/$package:latest"
48-
# docker pull "ghcr.io/${{ github.repository_owner }}/$package:latest" || echo "⚠️ Couldn't pull $package:latest, trying main..."
49-
# docker pull "ghcr.io/${{ github.repository_owner }}/$package:main" 2>/dev/null || echo "ℹ️ $package:main not available"
50-
# done
51-
#
52-
- name: Pull images from GHCR
53-
run: |
54-
docker pull ghcr.io/your-org/repo-name/image-name:tag
55-
docker pull ghcr.io/your-org/another-repo/service:latest
44+
echo "📦 Found packages:"
45+
echo "$PACKAGES"
5646
57-
run-integration-tests:
58-
name: "Run Integration Tests"
59-
needs: build-images
60-
runs-on: ubuntu-latest
61-
steps:
62-
- name: Checkout
63-
uses: actions/checkout@v4
64-
with:
65-
ref: ${{ inputs.commit-sha || 'main' }}
47+
# Pull each package
48+
for package in $PACKAGES; do
49+
echo "🐳 Pulling ghcr.io/scaleapi/$package:latest"
50+
docker pull "ghcr.io/scaleapi/$package:latest" || echo "⚠️ Failed to pull $package:latest"
51+
done
6652
67-
- name: Placeholder - Integration Tests
53+
- name: Show pulled images
6854
run: |
69-
echo "🧪 Integration tests will run here"
70-
echo "📦 AgentEx images have been built with commit SHA: ${{ inputs.commit-sha || 'main' }}"
71-
echo "🔄 This is where actual integration test commands should be added"
55+
echo "🐳 Successfully pulled images:"
56+
docker images | grep "ghcr.io/scaleapi" || echo "No scaleapi images found"
57+
58+
# run-integration-tests:
59+
# name: "Run Integration Tests"
60+
# needs: pull-agent-images
61+
# runs-on: ubuntu-latest
62+
# steps:
63+
# - name: Checkout
64+
# uses: actions/checkout@v4
65+
# with:
66+
# ref: ${{ inputs.commit-sha || 'main' }}
67+
#
68+
# - name: Login to GitHub Container Registry
69+
# uses: docker/login-action@v3
70+
# with:
71+
# registry: ghcr.io
72+
# username: ${{ github.repository_owner }}
73+
# password: ${{ secrets.GITHUB_TOKEN }}
74+
#
75+
# - name: Verify available images
76+
# run: |
77+
# echo "🐳 Available Docker images for testing:"
78+
# docker images | grep "ghcr.io/scaleapi" || echo "No scaleapi images available"
79+
#
80+
# - name: Placeholder - Integration Tests
81+
# run: |
82+
# echo "🧪 Integration tests will run here"
83+
# echo "📦 AgentEx Python dependency images are available for testing"
84+
# echo "🔄 This is where actual integration test commands should be added"

0 commit comments

Comments
 (0)