Skip to content

Commit 353b0e2

Browse files
authored
chore: merge pull request #233 from mattsb42-aws/ga
chore: migrate non-integ CI to GitHub Actions workflows
2 parents 8d84ff5 + 6a20af6 commit 353b0e2

7 files changed

+282
-217
lines changed
+53
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Continuous Integration tests for the decrypt oracle
2+
3+
on:
4+
pull_request:
5+
push:
6+
# Run once a day
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- uses: actions/setup-python@v1
16+
with:
17+
# The oracle runs in a Python 3.6 Lamba
18+
python-version: 3.6
19+
- run: |
20+
python -m pip install --upgrade pip
21+
pip install --upgrade -r ci-requirements.txt
22+
- name: run test
23+
env:
24+
TOXENV: local
25+
run: |
26+
cd decrypt_oracle
27+
tox -- -vv
28+
static-analysis:
29+
runs-on: ubuntu-latest
30+
strategy:
31+
fail-fast: false
32+
matrix:
33+
category:
34+
- bandit
35+
- readme
36+
- flake8
37+
- pylint
38+
- flake8-tests
39+
- pylint-tests
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: actions/setup-python@v1
43+
with:
44+
python-version: 3.x
45+
- run: |
46+
python -m pip install --upgrade pip
47+
pip install --upgrade -r ci-requirements.txt
48+
- name: run test
49+
env:
50+
TOXENV: ${{ matrix.category }}
51+
run: |
52+
cd decrypt_oracle
53+
tox -- -vv
+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Static analysis checks
2+
3+
on:
4+
pull_request:
5+
push:
6+
# Run once a day
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
analysis:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
category:
17+
- bandit
18+
- doc8
19+
- docs
20+
- readme
21+
- flake8
22+
- pylint
23+
- flake8-tests
24+
- pylint-tests
25+
- flake8-examples
26+
- pylint-examples
27+
- black-check
28+
- isort-check
29+
steps:
30+
- uses: actions/checkout@v2
31+
- uses: actions/setup-python@v1
32+
with:
33+
python-version: 3.x
34+
- run: |
35+
python -m pip install --upgrade pip
36+
pip install --upgrade -r ci-requirements.txt
37+
- name: run test
38+
env:
39+
TOXENV: ${{ matrix.category }}
40+
run: tox -- -vv
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Continuous Integration tests for the test vector handler
2+
3+
on:
4+
pull_request:
5+
push:
6+
# Run once a day
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
jobs:
11+
tests:
12+
# Until we address the credentials problem,
13+
# do not run for pull requests.
14+
if: github.event != 'pull_request'
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: true
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
- windows-latest
22+
- macos-latest
23+
python:
24+
- 2.7
25+
- 3.5
26+
- 3.6
27+
- 3.7
28+
- 3.8
29+
- 3.x
30+
architecture:
31+
- x64
32+
- x86
33+
category:
34+
- awses_1.3.3
35+
- awses_1.3.max
36+
- awses_latest
37+
exclude:
38+
# x86 builds are only meaningful for Windows
39+
- os: ubuntu-latest
40+
architecture: x86
41+
- os: macos-latest
42+
architecture: x86
43+
steps:
44+
- uses: aws-actions/configure-aws-credentials@v1
45+
with:
46+
aws-access-key-id: ${{ secrets.INTEG_AWS_ACCESS_KEY_ID }}
47+
aws-secret-access-key: ${{ secrets.INTEG_AWS_SECRET_ACCESS_KEY }}
48+
aws-region: us-west-2
49+
- uses: actions/checkout@v2
50+
- uses: actions/setup-python@v1
51+
with:
52+
python-version: ${{ matrix.python }}
53+
architecture: ${{ matrix.architecture }}
54+
- run: |
55+
python -m pip install --upgrade pip
56+
pip install --upgrade -r ci-requirements.txt
57+
- name: run test
58+
env:
59+
TOXENV: ${{ matrix.category }}
60+
run: |
61+
cd test_vector_handlers
62+
tox -- -vv
63+
static-analysis:
64+
runs-on: ubuntu-latest
65+
strategy:
66+
fail-fast: false
67+
matrix:
68+
category:
69+
- bandit
70+
- readme
71+
- flake8
72+
- pylint
73+
- flake8-tests
74+
- pylint-tests
75+
steps:
76+
- uses: actions/checkout@v2
77+
- uses: actions/setup-python@v1
78+
with:
79+
python-version: 3.x
80+
- run: |
81+
python -m pip install --upgrade pip
82+
pip install --upgrade -r ci-requirements.txt
83+
- name: run test
84+
env:
85+
TOXENV: ${{ matrix.category }}
86+
run: |
87+
cd test_vector_handlers
88+
tox -- -vv

.github/workflows/ci_tests.yaml

+100
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,100 @@
1+
name: Continuous Integration tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
# Run once a day
7+
schedule:
8+
- cron: '0 0 * * *'
9+
10+
env:
11+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID: |
12+
arn:aws:kms:us-west-2:658956600833:key/b3537ef1-d8dc-4780-9f5a-55776cbb2f7f
13+
AWS_ENCRYPTION_SDK_PYTHON_INTEGRATION_TEST_AWS_KMS_KEY_ID_2: |
14+
arn:aws:kms:eu-central-1:658956600833:key/75414c93-5285-4b57-99c9-30c1cf0a22c2
15+
16+
jobs:
17+
tests:
18+
runs-on: ${{ matrix.os }}
19+
strategy:
20+
fail-fast: true
21+
matrix:
22+
os:
23+
- ubuntu-latest
24+
- windows-latest
25+
- macos-latest
26+
python:
27+
- 2.7
28+
- 3.5
29+
- 3.6
30+
- 3.7
31+
- 3.8
32+
- 3.x
33+
architecture:
34+
- x64
35+
- x86
36+
category:
37+
- local
38+
- accept
39+
# These require credentials.
40+
# Enable them once we sort how to provide them.
41+
# - integ
42+
# - examples
43+
exclude:
44+
# x86 builds are only meaningful for Windows
45+
- os: ubuntu-latest
46+
architecture: x86
47+
- os: macos-latest
48+
architecture: x86
49+
steps:
50+
- uses: actions/checkout@v2
51+
- uses: actions/setup-python@v1
52+
with:
53+
python-version: ${{ matrix.python }}
54+
architecture: ${{ matrix.architecture }}
55+
- run: |
56+
python -m pip install --upgrade pip
57+
pip install --upgrade -r ci-requirements.txt
58+
- name: run test
59+
env:
60+
TOXENV: ${{ matrix.category }}
61+
run: tox -- -vv
62+
upstream-py3:
63+
runs-on: ubuntu-latest
64+
strategy:
65+
fail-fast: true
66+
matrix:
67+
category:
68+
- nocmk
69+
- test-upstream-requirements-py37
70+
steps:
71+
- uses: actions/checkout@v2
72+
- uses: actions/setup-python@v1
73+
with:
74+
python-version: 3.7
75+
- run: |
76+
python -m pip install --upgrade pip
77+
pip install --upgrade -r ci-requirements.txt
78+
- name: run test
79+
env:
80+
TOXENV: ${{ matrix.category }}
81+
run: tox -- -vv
82+
upstream-py2:
83+
runs-on: ubuntu-latest
84+
strategy:
85+
fail-fast: true
86+
matrix:
87+
category:
88+
- test-upstream-requirements-py27
89+
steps:
90+
- uses: actions/checkout@v2
91+
- uses: actions/setup-python@v1
92+
with:
93+
python-version: 2.7
94+
- run: |
95+
python -m pip install --upgrade pip
96+
pip install --upgrade -r ci-requirements.txt
97+
- name: run test
98+
env:
99+
TOXENV: ${{ matrix.category }}
100+
run: tox -- -vv

0 commit comments

Comments
 (0)