Skip to content

chore(CI): Run CodeBuild CI from GHA #7

chore(CI): Run CodeBuild CI from GHA

chore(CI): Run CodeBuild CI from GHA #7

name: AWS CodeBuild CI
on:
pull_request:
push:
# Run once a day
schedule:
- cron: "0 0 * * *"
permissions:
id-token: write
contents: read
jobs:
codebuild-tests:
name: AWS CodeBuild CI
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "38"
- "39"
- "310"
- "311"
- "312"
codebuild_file_name:
- "awses_local.yml"
- "examples.yml"
- "integ.yml"
exclude:

Check failure on line 30 in .github/workflows/ci_codebuild-tests.yml

View workflow run for this annotation

GitHub Actions / AWS CodeBuild CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci_codebuild-tests.yml (Line: 30, Col: 7): Unexpected value 'exclude'
# No "awses_local.yml" file exists in py39/
- python: "39"
codebuild_file_name: "awses_local.yml"
steps:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
role-duration-seconds: 3600
- name: Run python-${{ matrix.python }} ${{ matrix.codebuild_file_name }}
uses: aws-actions/aws-codebuild-run-build@v1
timeout-minutes: 60
with:
project-name: python-esdk
buildspec-override: codebuild/py${{ matrix.python }}/${{ matrix.codebuild_file_name }}