-
Notifications
You must be signed in to change notification settings - Fork 1.2k
change: enable github actions for PRs #4489
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
Changes from all commits
96fb7ed
7304bfe
74924f8
0dc6132
a5c37ee
0fcbc08
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
name: PR Checks | ||
on: | ||
pull_request_target: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }} | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
|
||
jobs: | ||
codestyle-doc-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | ||
aws-region: us-west-2 | ||
role-duration-seconds: 10800 | ||
- name: Run Codestyle & Doc Tests | ||
uses: aws-actions/aws-codebuild-run-build@v1 | ||
with: | ||
project-name: sagemaker-python-sdk-ci-codestyle-doc-tests | ||
source-version-override: 'pr/${{ github.event.pull_request.number }}' | ||
unit-tests: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We will also need timeout settings right or it would be inherited from CodeBuild projects? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We are using There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might be good to expose build spec here as well later on, but don't want to do too much at once. Want to get the plan for integ split figured out first before we move on with other improvements There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Makes sense. let's take small steps |
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: ["py38", "py39", "py310"] | ||
steps: | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} | ||
aws-region: us-west-2 | ||
role-duration-seconds: 10800 | ||
knikure marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- name: Run Unit Tests | ||
uses: aws-actions/aws-codebuild-run-build@v1 | ||
with: | ||
project-name: sagemaker-python-sdk-ci-unit-tests | ||
source-version-override: 'pr/${{ github.event.pull_request.number }}' | ||
env-vars-for-codebuild: | | ||
PY_VERSION | ||
env: | ||
PY_VERSION: ${{ matrix.python-version }} |
Uh oh!
There was an error while loading. Please reload this page.