-
Notifications
You must be signed in to change notification settings - Fork 39
57 lines (49 loc) · 1.76 KB
/
python-integration.yml
File metadata and controls
57 lines (49 loc) · 1.76 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
name: Python Integration Tests
on:
workflow_call:
jobs:
integration:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12']
include:
- python-version: '3.10'
tox-env: 'py310-integ'
- python-version: '3.11'
tox-env: 'py311-integ'
- python-version: '3.12'
tox-env: 'py312-integ'
permissions:
id-token: write
contents: read
env:
TOXENV: ${{ matrix.tox-env }}
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_MRK_KEY_ID_1: >-
arn:aws:kms:us-east-1:658956600833:key/mrk-80bd8ecdcd4342aebd84b7dc9da498a7
steps:
- uses: actions/checkout@v3
- name: Configure AWS Credentials for Tests
uses: aws-actions/configure-aws-credentials@v4
with:
aws-region: us-west-2
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-ESDK-CLI-Role-us-west-2
role-session-name: CLITests
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "tox < 4.0"
# Python no longer bundles setuptools starting in 3.12
- name: Install python version specific dependencies
if: matrix.python-version == '3.12'
run: |
pip install -r dev_requirements/ci-requirements.txt
- name: Run integration tests with tox
run: tox