-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GitHub Actions for Python unit tests (#1677)
* Add GitHub Actions for Python unit tests * Add PythonPath * Add health * Add pwd * Mock kube config * Add Rest PATH
- Loading branch information
1 parent
42e3cb2
commit 0a5e418
Showing
12 changed files
with
48 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Python Test | ||
|
||
on: | ||
- push | ||
- pull_request | ||
|
||
jobs: | ||
test: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.7 | ||
|
||
- name: Install Packages | ||
run: | | ||
pip install grpcio-testing==1.40.0 | ||
pip install pytest==5.1.2 | ||
pip install -r cmd/suggestion/chocolate/v1beta1/requirements.txt | ||
pip install -r cmd/suggestion/hyperopt/v1beta1/requirements.txt | ||
pip install -r cmd/suggestion/skopt/v1beta1/requirements.txt | ||
pip install -r cmd/suggestion/optuna/v1beta1/requirements.txt | ||
pip install -r cmd/suggestion/nas/enas/v1beta1/requirements.txt | ||
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 | ||
- name: Run Python test | ||
run: | | ||
export PYTHONPATH=$(pwd):$(pwd)/pkg/apis/manager/v1beta1/python:$(pwd)/pkg/apis/manager/health/python | ||
echo $PYTHONPATH | ||
pytest ./test/unit/v1beta1/suggestion | ||
pytest ./test/unit/v1beta1/earlystopping |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.