-
Notifications
You must be signed in to change notification settings - Fork 46
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
create GitHub workflow #176
base: main
Are you sure you want to change the base?
create GitHub workflow #176
Conversation
Signed-off-by: David Liu <[email protected]>
Signed-off-by: David Liu <[email protected]>
.github/workflows/python-package.yml
Outdated
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.8", "3.9", "3.10"] |
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.
Nit: We claim python 3.7.2 in deps, but don't test it here.
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.
@shevek-google Good suggestion.
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] |
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.
@davidkhala We already use nox
to run tests under different Python versions:
- https://github.com/google/dwh-migration-tools/blob/main/client/noxfile.py#L52
- https://github.com/google/dwh-migration-tools/blob/main/client/CONTRIBUTING.md#test
Also, we have formatting, linting and type checking:
So far we have just been running everything manually. Is it possible to take advantage of that here? @paolomorandini does it matter whether these checks are run via GH actions or our existing kokoro scripts?
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.
I think we can use GH actions as long as we don't need secrets.
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.
Integration/load tests will need secrets.
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.
@ajwelch4 agree, will take a look to see if we can reuse those existing test script into GH workflow.
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10"] |
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.
Integration/load tests will need secrets.
Along with an adjustment to cover more general install cases