Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add test script for cli server #39

Merged
merged 1 commit into from
Mar 13, 2024
Merged

Conversation

Lanture1064
Copy link
Collaborator

@Lanture1064 Lanture1064 commented Mar 11, 2024

What type of PR is this?

/kind feature

What this PR does / why we need it

Which issue(s) this PR fixes

Fixes #38

Special notes for your reviewer

@Lanture1064 Lanture1064 marked this pull request as ready for review March 11, 2024 09:58
id: push-worker
uses: docker/build-push-action@v5
with:
context: .

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

docker ps
- name: Run test script
run: |
sh -C tests/example_test.sh

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like the top part is similar to https://github.com/kubeagi/core-library/blob/main/.github/workflows/image_build_test.yml, so I guess you could just modify that file?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I simply cp those into the test action yaml for sure. Could we merge all tests together or leave it here as we might need other tests that would be better executed seperately?

PYTHON_INDEX_URL=${{ env.PYTHON_INDEX_URL }}
- name: Run Docker Container
run: |
docker run -d --name temp-container test-image
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

temp-container -> cli-container

@bjwswang bjwswang merged commit e7c5c59 into kubeagi:main Mar 13, 2024
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

add a test script for kubeagi_cli
3 participants