From 5754c777066f517cc09147b2e17b48be772040de Mon Sep 17 00:00:00 2001 From: nileshvd <113946607+nileshvd@users.noreply.github.com> Date: Tue, 28 Jan 2025 15:11:53 -0800 Subject: [PATCH] Create GitHub action to trigger canaries --- .github/workflows/codebuild-canaries.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/codebuild-canaries.yml diff --git a/.github/workflows/codebuild-canaries.yml b/.github/workflows/codebuild-canaries.yml new file mode 100644 index 0000000000..a6b5a978ef --- /dev/null +++ b/.github/workflows/codebuild-canaries.yml @@ -0,0 +1,24 @@ +name: Canaries +on: + schedule: + - cron: "0 */3 * * *" + workflow_dispatch: + +permissions: + id-token: write # This is required for requesting the JWT + +jobs: + 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 Integ Tests + uses: aws-actions/aws-codebuild-run-build@v1 + id: codebuild + with: + project-name: sagemaker-python-sdk-canaries