chore(docs): Fix casing #281
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Integ Tests | |
on: | |
workflow_dispatch: {} | |
workflow_call: | |
secrets: | |
INTEG_TEST_ROLE_ARN: | |
required: true | |
description: "" | |
INTEG_TEST_REGION: | |
required: true | |
description: "" | |
push: | |
branches: | |
- main | |
jobs: | |
integ_tests: | |
name: Run Integration Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 30 | |
permissions: | |
id-token: write | |
contents: read | |
steps: | |
- uses: actions/checkout@v4 | |
- name: "Check secrets" | |
run: | | |
if [ -z "${{ secrets.INTEG_TEST_ROLE_ARN }}" ]; then echo "Secret missing: INTEG_TEST_ROLE_ARN" && exit 1; fi | |
if [ -z "${{ secrets.INTEG_TEST_REGION }}" ]; then echo "Secret missing: INTEG_TEST_REGION" && exit 1; fi | |
- name: "Set up Typescript" | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v5 | |
with: | |
enable-cache: true | |
- name: "Set up Python" | |
uses: actions/setup-python@v5 | |
with: | |
python-version-file: "src/python/.python-version" | |
- name: Install CDK CLI | |
run: npm install -g aws-cdk | |
- name: Configure AWS Credentials | |
uses: aws-actions/configure-aws-credentials@v4 | |
with: | |
role-to-assume: ${{ secrets.INTEG_TEST_ROLE_ARN }} | |
aws-region: ${{ secrets.INTEG_TEST_REGION }} | |
- name: Run tests | |
run: | | |
cd src/python | |
uv venv | |
if [ -f .venv/bin/activate ]; then source .venv/bin/activate; else echo "Virtual environment activation failed" && exit 1; fi | |
cd ../.. | |
./e2e_tests/run_integ_test.sh | |
timeout-minutes: 20 | |
working-directory: ${{ github.workspace }} | |
- name: Clean up | |
if: always() | |
run: | | |
source src/python/.venv/bin/activate | |
./e2e_tests/clean_up_integ_test.sh | |
working-directory: ${{ github.workspace }} |