-
Notifications
You must be signed in to change notification settings - Fork 442
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 GitHub Actions for Python unit tests #1677
Add GitHub Actions for Python unit tests #1677
Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andreyvelich The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
66e6827
to
f58b470
Compare
This PR is ready. |
pip install -r cmd/suggestion/hyperband/v1beta1/requirements.txt | ||
pip install -r cmd/suggestion/nas/darts/v1beta1/requirements.txt | ||
|
||
pip install -r cmd/earlystopping/medianstop/v1beta1/requirements.txt |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, maybe in the future we can introduce the python site-packages cache to accelerate the building process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
/lgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for adding this feature!
- name: Run Python test | ||
run: | | ||
export PYTHONPATH=$(pwd):$(pwd)/pkg/apis/manager/v1beta1/python:$(pwd)/pkg/apis/manager/health/python | ||
echo $PYTHONPATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could we remove this line after debugging?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice catch. I will address your comments in the following PR.
pip install grpcio-testing==1.40.0 | ||
pip install pytest==5.1.2 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about make a requirements.txt
including this packages at the source root directory ?
Related: #1601.
Blocked by: #1674.
I moved Python unit tests to GitHub Actions.
/cc @gaocegege @anencore94 @johnugeorge