-
Notifications
You must be signed in to change notification settings - Fork 45
59 lines (50 loc) · 1.36 KB
/
integ-tests.yml
File metadata and controls
59 lines (50 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Integ Tests
on:
workflow_dispatch: {}
workflow_call:
push:
branches:
- main
jobs:
integ_tests:
name: Run Integration Tests
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- uses: actions/checkout@v4
- 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
source .venv/bin/activate
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 }}