-
Notifications
You must be signed in to change notification settings - Fork 301
Adding build script for Tesserocr python package #7513
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
base: master
Are you sure you want to change the base?
Conversation
|
4 Test cases are falling currently, do need all test case to pass before merge? |
|
@shubham-dayma-ibm and @nikhil-kalbande may you please assist with @adarshagrawal38 's request. Thank you. |
shubham-dayma-ibm
left a comment
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.
The tests can only be skipped if it has genuine justification.
| # Source repo : https://github.com/sirfz/tesserocr | ||
| # Tested on : UBI 9.6 | ||
| # Language : Python | ||
| # Travis-Check : false |
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.
Replace Travis-Check : false to Ci-Check : True So PR checks can run and validate the script. tests should ideally pass. if not the script is missing something.
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.
sure updated
| fi | ||
|
|
||
| # Run nox if noxfile.py is present and previous tests failed | ||
| if [ -f "noxfile.py" ] && [ $test_status -ne 0 ]; then |
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.
nox block is not required.
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.
okay, I have removed it.
| test_status=1 # 0 = success, non-zero = failure | ||
|
|
||
| # Run pytest if any matching test files found | ||
| if ls */test_*.py > /dev/null 2>&1 && [ $test_status -ne 0 ]; then |
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.
is community supporting pytest? If not remove it
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.
removed it.
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.
community support is there
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
dbe574c to
a4ab76a
Compare
| echo "$PACKAGE_URL $PACKAGE_NAME" | ||
| echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | $SOURCE | Fail | Install_Failed" | ||
| exit 1 | ||
| fi |
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.
Why aren't we executing the test cases?
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.
added block to run test cases using pytest (Community support is there for pytest)
PTAL
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
Signed-off-by: Adarsh Agrawal <adarsh.agrawal1@ibm.com>
okay, All test cases are passing now. |
Checklist
set -eoption enabled and observe success ?