File tree 1 file changed +47
-0
lines changed 1 file changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+ on :
3
+ pull_request :
4
+ workflow_dispatch :
5
+
6
+ concurrency :
7
+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
8
+ cancel-in-progress : true
9
+
10
+ permissions :
11
+ id-token : write # This is required for requesting the JWT
12
+
13
+ jobs :
14
+ codestyle-doc-tests :
15
+ runs-on : ubuntu-latest
16
+ steps :
17
+ - name : Configure AWS Credentials
18
+ uses : aws-actions/configure-aws-credentials@v4
19
+ with :
20
+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
21
+ aws-region : us-west-2
22
+ role-duration-seconds : 10800
23
+ - name : Run Codestyle & Doc Tests
24
+ uses : aws-actions/aws-codebuild-run-build@v1
25
+ with :
26
+ project-name : sagemaker-python-sdk-ci-codestyle-doc-tests
27
+ unit-tests :
28
+ runs-on : ubuntu-latest
29
+ strategy :
30
+ fail-fast : false
31
+ matrix :
32
+ python-version : ["py38", "py39", "py310"]
33
+ steps :
34
+ - name : Configure AWS Credentials
35
+ uses : aws-actions/configure-aws-credentials@v4
36
+ with :
37
+ role-to-assume : ${{ secrets.CI_AWS_ROLE_ARN }}
38
+ aws-region : us-west-2
39
+ role-duration-seconds : 10800
40
+ - name : Run Unit Tests
41
+ uses : aws-actions/aws-codebuild-run-build@v1
42
+ with :
43
+ project-name : sagemaker-python-sdk-ci-unit-tests
44
+ env-vars-for-codebuild : |
45
+ PY_VERSION
46
+ env :
47
+ PY_VERSION : ${{ matrix.python-version }}
You can’t perform that action at this time.
0 commit comments