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

Add basic test to make sure python runs #103

Closed
wants to merge 10 commits into from
Closed

Add basic test to make sure python runs #103

wants to merge 10 commits into from

Conversation

rbren
Copy link
Collaborator

@rbren rbren commented Mar 22, 2024

This comes out of me almost breaking main.py while editing the server.

image: docker:19.03.12
options: --privileged
steps:
- uses: actions/checkout@v2
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is there a reason why we should be using v2? It uses node 12 which is deprecated, and there are v3 and v4.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Hah, the dangers of having an LLM generate code for you 😅

run: |
export SANDBOX_CONTAINER_IMAGE="ubuntu:24.04"
python -m pip install -r requirements.txt
PYTHONPATH=`pwd` python ./opendevin/main.py -d ./ -t "write a hello world script" --model-name=fake
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

@xingyaoww would be good to run this a second time with the codeact agent (which I broke in an earlier PR 🙃). Would it be hard to respect the fake model and just return a no-op?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Sounds good, will look at this when i finished #105

@rbren
Copy link
Collaborator Author

rbren commented Mar 26, 2024

We have a new fake implementation and the linter seems to be doing a good job here. Closing.

@rbren rbren closed this Mar 26, 2024
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.

3 participants