Skip to content

chore(CI): clean up gha and unused files #767

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

Merged
merged 1 commit into from
Jul 3, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/ci_codebuild-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ on:
# Run once a day
schedule:
- cron: "0 0 * * *"
# Add workflow_call trigger
workflow_call:
# Define any secrets that need to be passed from the caller
secrets:
CI_AWS_ROLE_ARN:
required: true

permissions:
id-token: write
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/ci_codebuild_batch.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: AWS CodeBuild Batch Workflow

on:
pull_request:
push:
# Run once a day
schedule:
- cron: "0 0 * * *"
workflow_call:
# Define any secrets that need to be passed from the caller
secrets:
CI_AWS_ROLE_ARN:
required: true

permissions:
id-token: write
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci_decrypt-oracle.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Continuous Integration tests for the decrypt oracle

on:
pull_request:
push:
# Run once a day
schedule:
- cron: '0 0 * * *'
workflow_call:

jobs:
tests:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci_static-analysis.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Static analysis checks

on:
pull_request:
push:
# Run once a day
schedule:
- cron: '0 0 * * *'
workflow_call:

jobs:
analysis:
Expand Down
12 changes: 7 additions & 5 deletions .github/workflows/ci_test-vector-handler.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
name: Continuous Integration tests for the test vector handler

on:
pull_request:
push:
# Run once a day
schedule:
- cron: '0 0 * * *'
workflow_call:
# Define any secrets that need to be passed from the caller
secrets:
INTEG_AWS_ACCESS_KEY_ID:
required: true
INTEG_AWS_SECRET_ACCESS_KEY:
required: true

jobs:
tests:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/ci_tests.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,7 @@
name: Continuous Integration tests

on:
pull_request:
push:
# Run once a day
schedule:
- cron: '0 0 * * *'
workflow_call:

env:
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: |
Expand Down
39 changes: 39 additions & 0 deletions .github/workflows/daily_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# This workflow runs every weekday at 15:00 UTC (8AM PDT)
name: Daily CI

on:
schedule:
- cron: "00 15 * * 1-5"

jobs:
codebuild_batch:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_codebuild_batch.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}
codebuild_tests:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_codebuild-tests.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}
decrypt_oracle:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_decrypt-oracle.yaml
static_analysis:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_static-analysis.yaml
test_vector_handler:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_test-vector-handler.yaml
secrets:
INTEG_AWS_ACCESS_KEY_ID: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }}
INTEG_AWS_SECRET_ACCESS_KEY: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }}
tests:
# Don't run the cron builds on forks
if: github.event_name != 'schedule' || github.repository_owner == 'aws'
uses: ./.github/workflows/ci_tests.yaml
45 changes: 45 additions & 0 deletions .github/workflows/pull.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Pull Request Workflow

on:
pull_request:

permissions:
id-token: write
contents: read

jobs:
# Call each workflow with appropriate parameters
codebuild_batch:
uses: ./.github/workflows/ci_codebuild_batch.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}
codebuild_tests:
uses: ./.github/workflows/ci_codebuild-tests.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}
decrypt_oracle:
uses: ./.github/workflows/ci_decrypt-oracle.yaml
static_analysis:
uses: ./.github/workflows/ci_static-analysis.yaml
test_vector_handler:
uses: ./.github/workflows/ci_test-vector-handler.yaml
secrets:
INTEG_AWS_ACCESS_KEY_ID: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }}
INTEG_AWS_SECRET_ACCESS_KEY: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }}
tests:
uses: ./.github/workflows/ci_tests.yaml
pr-ci-all-required:
if: always()
needs:
- codebuild_batch
- codebuild_tests
- decrypt_oracle
- static_analysis
- test_vector_handler
- tests
runs-on: ubuntu-22.04
steps:
- name: Verify all required jobs passed
uses: re-actors/alls-green@release/v1
with:
jobs: ${{ toJSON(needs) }}
36 changes: 36 additions & 0 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Push Workflow

on:
push:
branches: master

permissions:
id-token: write
contents: read

jobs:
# Call each workflow with appropriate parameters
codebuild_batch:
uses: ./.github/workflows/ci_codebuild_batch.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}

codebuild_tests:
uses: ./.github/workflows/ci_codebuild-tests.yml
secrets:
CI_AWS_ROLE_ARN: ${{ secrets.CI_AWS_ROLE_ARN }}

decrypt_oracle:
uses: ./.github/workflows/ci_decrypt-oracle.yaml

static_analysis:
uses: ./.github/workflows/ci_static-analysis.yaml

test_vector_handler:
uses: ./.github/workflows/ci_test-vector-handler.yaml
secrets:
INTEG_AWS_ACCESS_KEY_ID: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }}
INTEG_AWS_SECRET_ACCESS_KEY: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }}

tests:
uses: ./.github/workflows/ci_tests.yaml