-
Notifications
You must be signed in to change notification settings - Fork 2
51 lines (44 loc) · 1.47 KB
/
integration_test.yml
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
name: Run integration tests
on:
push:
branches:
- feat-53-integration-testing
jobs:
integration_tests:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
env:
AWS_METADATA_MAPPER_ROLE: ${{ secrets.AWS_METADATA_MAPPER_ROLE_DEV }}
AWS_METADATA_MAPPER_BUCKET: ${{ vars.AWS_METADATA_MAPPER_BUCKET_DEV }}
AWS_REGION: ${{ vars.AWS_REGION_DEV }}
MOUNT_S3_URL: ${{ vars.MOUNT_S3_URL }}
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Install dependencies
run:
python -m pip install -e .[all]
- name: Configure aws credentials
uses: aws-actions/configure-aws-credentials@v2
with:
role-to-assume: ${{ env.AWS_METADATA_MAPPER_ROLE }}
role-session-name: github-integration-test-session
aws-region: ${{ env.AWS_REGION }}
- name: install mountpoint-s3
run: |
wget $MOUNT_S3_URL
sudo apt-get update
sudo apt-get install ./mount-s3.deb
- name: mount s3 bucket
run: |
mkdir bucket_mt
mount-s3 $AWS_METADATA_MAPPER_BUCKET bucket_mt
- name: run integration tests
run: |
python tests/integration/bergamo/session.py --input_source "bucket_mt/metadata-mapper-integration-testing/bergamo" IntegrationTestBergamo
umount bucket_mt