-
Notifications
You must be signed in to change notification settings - Fork 319
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
[Subtask] integrate pytest with gradle to run python test with CICD #2518
Comments
@shaofengshi Hi, Why do we use |
@coolderli , with gradle integration, user can run the build in local, without dependency on Github. Is that reasonable? Just let me know if that will bring potential issue. |
@shaofengshi Users can use |
Hi Peidian, I believe python user still use pytest to run the test. What Jerry suggests is, when run a "gradle build" command, it will call the "pytest" command in the client-python module. Not sure whether this solves your concern. @coolderli |
### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: #2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…e#2684) ### What changes were proposed in this pull request? - use Gradle to manage Python build. - add Github CI - `./gradlew clean clients:client-python:test` ### Why are the changes needed? Fix: apache#2518 ### Does this PR introduce _any_ user-facing change? - no ### How was this patch tested? - `./gradlew clean clients:client-python:test`
…st with CICD (#2753) ### What changes were proposed in this pull request? 1. Use Gradle python plugin to manage python module 2. Automatic download conda and create python env in `gravitino/.gradle/python` directory 3. Use multiple python version `3.8`, `3.9`, `3.10`,and `3.11` test ITs in Github Action 4. Support `gradlew clean` & `gradlew build` & `gradlew :client:client-python:test -PpythonVersion=3.8` ### Why are the changes needed? Use Gradle manager and development Python client module. Fix: #2518 ### Does this PR introduce _any_ user-facing change? 1. Use `pythonVersion` Gradle parameter setting Python version to compile and test Python client, `gradlew :client:client-python:test -PpythonVersion=3.8` 2. Use `skipPythonITs` Gradle parameter to control if skip Python test cases. ### How was this patch tested? CI Passed. --------- Co-authored-by: Peidian li <38486782+coolderli@users.noreply.github.com>
Describe the subtask
As discussed in #2280, integrate pytest with gradle, so that we can use gradle to build/test the python client module
This might be a good reference: https://attx-project.github.io/Building-with-Gradle.html
Parent issue
#2229
The text was updated successfully, but these errors were encountered: