Skip to content

Commit c723507

Browse files
committed
more
1 parent 800eb44 commit c723507

File tree

1 file changed

+79
-0
lines changed

1 file changed

+79
-0
lines changed

.github/workflows/ci_integration.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# This workflow runs integration tests with AWS KMS keys
2+
name: integration-tests
3+
4+
on:
5+
push:
6+
branches: [ master ]
7+
pull_request:
8+
branches: [ master ]
9+
# Run once a day
10+
schedule:
11+
- cron: '0 0 * * *'
12+
13+
jobs:
14+
test:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
20+
include:
21+
- python-version: '3.8'
22+
toxenv: 'py38-integ-slow'
23+
- python-version: '3.9'
24+
toxenv: 'py39-integ-slow'
25+
- python-version: '3.10'
26+
toxenv: 'py310-integ-slow'
27+
- python-version: '3.11'
28+
toxenv: 'py311-integ-slow'
29+
- python-version: '3.12'
30+
toxenv: 'py312-integ-slow'
31+
32+
steps:
33+
- uses: actions/checkout@v4
34+
35+
- name: Set up Python ${{ matrix.python-version }}
36+
uses: actions/setup-python@v5
37+
with:
38+
python-version: ${{ matrix.python-version }}
39+
40+
- name: Install dependencies
41+
run: |
42+
python -m pip install --upgrade pip
43+
pip install "tox < 4.0"
44+
45+
- name: Configure AWS Credentials for Tests
46+
uses: aws-actions/configure-aws-credentials@v4
47+
with:
48+
aws-region: us-west-2
49+
role-to-assume: arn:aws:iam::370957321024:role/GitHub-CI-DDBEC-Python-Role-us-west-2
50+
role-session-name: DDBEC-Python-Tests
51+
52+
- name: Test with tox
53+
env:
54+
TOXENV: ${{ matrix.toxenv }}
55+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: >-
56+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
57+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: >-
58+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
59+
run: tox
60+
61+
coverage:
62+
runs-on: ubuntu-latest
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Set up Python
67+
uses: actions/setup-python@v5
68+
with:
69+
python-version: '3.x'
70+
71+
- name: Install dependencies
72+
run: |
73+
python -m pip install --upgrade pip
74+
pip install "tox < 4.0"
75+
76+
- name: Run coverage
77+
env:
78+
TOXENV: coverage
79+
run: tox

0 commit comments

Comments
 (0)