-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anish Asthana <[email protected]>
- Loading branch information
1 parent
d1faddb
commit 9f1bb2a
Showing
9 changed files
with
44 additions
and
57 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
openshift-client==1.0.18 | ||
rich==12.5.1 | ||
ray[default]==2.1.0 | ||
kubernetes==26.1.0 | ||
codeflare-torchx==0.6.0.dev0 | ||
pre-commit | ||
poetry | ||
pytest | ||
pytest-mock | ||
coverage | ||
black==22.3.0 |
File renamed without changes.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: Python Tests | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
unit-tests: | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: quay.io/project-codeflare/codeflare-sdk-precommit:v0.0.3 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Test with pytest and check coverage | ||
run: | | ||
coverage run -m --source=src pytest -v tests/unit_test.py | ||
coverage=$(coverage report -m | tail -1 | tail -c 4 | head -c 2) | ||
if (( $coverage < 90 )); then exit 1; else echo "Coverage passed, ${coverage}%"; fi |
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
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