Skip to content

Commit 4c8f6ce

Browse files
authored
chore: org ci/cd (#297)
1 parent 13d59a2 commit 4c8f6ce

File tree

5 files changed

+78
-102
lines changed

5 files changed

+78
-102
lines changed

.github/workflows/aws-deploy.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

.github/workflows/python-app.yml renamed to .github/workflows/serverless-service.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Serverless Service Build
4+
name: Serverless Service CI/CD
55

66
on:
77
push:
@@ -25,11 +25,23 @@ jobs:
2525
uses: actions/setup-python@v4
2626
with:
2727
python-version: "3.9"
28+
- name: Set up Node
29+
uses: actions/setup-node@v3
30+
with:
31+
node-version: "16"
2832
- name: Install dependencies
2933
run: |
3034
python -m pip install --upgrade pip
35+
pip install pipenv
3136
pip install -r dev_requirements.txt
3237
pip install -r lambda_requirements.txt
38+
npm install -g aws-cdk
39+
- name: Configure aws credentials
40+
uses: aws-actions/configure-aws-credentials@master
41+
with:
42+
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
43+
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
44+
aws-region: "us-east-1"
3345
- name: pre commit
3446
run: |
3547
make pre-commit
@@ -54,10 +66,13 @@ jobs:
5466
fail_ci_if_error: true # optional (default = false)
5567
verbose: false # optional (default = false)
5668
token: ${{ secrets.CODECOV_TOKEN }}
57-
- run: echo "Run CDK deploy to your AWS account"
58-
- run: echo "Run E2E"
59-
- run: echo "Update documentation"
60-
- run: echo "🍏 This job's status is ${{ job.status }}."
69+
- name: Deploy to AWS
70+
run: make deploy
71+
- name: Run E2E tests
72+
run: make e2e
73+
- name: Destroy stack
74+
if: always()
75+
run: make destroy
6176

6277
generate_docs_on_main:
6378
name: generate_docs_on_main

Pipfile.lock

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev_requirements.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
-i https://pypi.org/simple
22
attrs==22.1.0; python_version >= '3.5'
3-
aws-cdk-lib==2.43.1; python_version ~= '3.7'
3+
aws-cdk-lib==2.44.0; python_version ~= '3.7'
44
aws-cdk.aws-lambda-python-alpha==2.39.1a0; python_version ~= '3.7'
55
-e ./cdk
6-
boto3==1.24.81; python_version >= '3.7'
7-
botocore==1.27.81; python_version >= '3.7'
8-
cattrs==22.1.0; python_version >= '3.7' and python_version < '4.0'
9-
cdk-nag==2.18.22; python_version ~= '3.7'
6+
boto3==1.24.82; python_version >= '3.7'
7+
botocore==1.27.82; python_version >= '3.7'
8+
cattrs==22.1.0; python_version >= '3.7' and python_version < '4'
9+
cdk-nag==2.18.23; python_version ~= '3.7'
1010
certifi==2022.9.24; python_version >= '3.6'
1111
cfgv==3.3.1; python_full_version >= '3.6.1'
1212
charset-normalizer==2.1.1; python_version >= '3.6'
1313
click==8.1.3; python_version >= '3.7'
1414
colorama==0.4.5; python_version >= '3.5'
15-
constructs==10.1.114; python_version ~= '3.7'
15+
constructs==10.1.116; python_version ~= '3.7'
1616
coverage[toml]==6.4.4; python_version >= '3.7'
1717
distlib==0.3.6
1818
exceptiongroup==1.0.0rc9; python_version < '3.11'
@@ -29,13 +29,13 @@ iniconfig==1.1.1
2929
isort==5.10.1
3030
jinja2==3.1.2; python_version >= '3.7'
3131
jmespath==1.0.1; python_version >= '3.7'
32-
jsii==1.68.0; python_version ~= '3.7'
32+
jsii==1.69.0; python_version ~= '3.7'
3333
mando==0.6.4
3434
markdown==3.3.7; python_version >= '3.6'
3535
markupsafe==2.1.1; python_version >= '3.7'
3636
mccabe==0.7.0; python_version >= '3.6'
3737
mergedeep==1.3.4; python_version >= '3.6'
38-
mkdocs==1.3.1; python_version >= '3.6'
38+
mkdocs==1.4.0; python_version >= '3.7'
3939
mkdocs-git-revision-date-plugin==0.3.2
4040
mkdocs-material==8.5.3
4141
mkdocs-material-extensions==1.0.3; python_version >= '3.6'
@@ -52,16 +52,16 @@ pygments==2.13.0; python_version >= '3.6'
5252
pymdown-extensions==9.5; python_version >= '3.7'
5353
pyparsing==3.0.9; python_full_version >= '3.6.8'
5454
pytest==7.1.3
55-
pytest-cov==3.0.0
55+
pytest-cov==4.0.0
5656
pytest-html==3.1.1
57-
pytest-metadata==2.0.2; python_version >= '3.7' and python_version < '4.0'
58-
pytest-mock==3.8.2
57+
pytest-metadata==2.0.2; python_version >= '3.7' and python_version < '4'
58+
pytest-mock==3.9.0
5959
python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
6060
python-dotenv==0.21.0
6161
pyyaml==6.0; python_version >= '3.6'
6262
pyyaml-env-tag==0.1; python_version >= '3.6'
6363
radon==5.1.0
64-
requests==2.28.1; python_version >= '3.7' and python_version < '4.0'
64+
requests==2.28.1; python_version >= '3.7' and python_version < '4'
6565
s3transfer==0.6.0; python_version >= '3.7'
6666
-e ./cdk
6767
setuptools==65.4.0; python_version >= '3.7'
@@ -71,15 +71,15 @@ toml==0.10.2; python_version >= '2.6' and python_version not in '3.0, 3.1, 3.2,
7171
tomli==2.0.1; python_version >= '3.7'
7272
typeguard==2.13.3; python_full_version >= '3.5.3'
7373
typing-extensions==4.3.0; python_version >= '3.7'
74-
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'
74+
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_full_version < '4.0.0'
7575
virtualenv==20.16.5; python_version >= '3.6'
7676
watchdog==2.1.9; python_version >= '3.6'
7777
xenon==0.9.0
7878
yapf==0.32.0
7979
zipp==3.8.1; python_version >= '3.7'
8080
aws-lambda-powertools==1.29.2
8181
aws-xray-sdk==2.10.0
82-
dnspython==2.2.1; python_version >= '3.6' and python_version < '4'
82+
dnspython==2.2.1; python_version >= '3.6' and python_full_version < '4.0.0'
8383
email-validator==1.3.0
8484
fastjsonschema==2.16.2
8585
pydantic[email]==1.10.2

lambda_requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
-i https://pypi.org/simple
22
aws-lambda-powertools==1.29.2
33
aws-xray-sdk==2.10.0
4-
boto3==1.24.81; python_version >= '3.7'
5-
botocore==1.27.81; python_version >= '3.7'
6-
dnspython==2.2.1; python_version >= '3.6' and python_version < '4'
4+
boto3==1.24.82; python_version >= '3.7'
5+
botocore==1.27.82; python_version >= '3.7'
6+
dnspython==2.2.1; python_version >= '3.6' and python_full_version < '4.0.0'
77
email-validator==1.3.0
88
fastjsonschema==2.16.2
99
idna==3.4; python_version >= '3.5'
@@ -13,5 +13,5 @@ python-dateutil==2.8.2; python_version >= '2.7' and python_version not in '3.0,
1313
s3transfer==0.6.0; python_version >= '3.7'
1414
six==1.16.0; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3'
1515
typing-extensions==4.3.0; python_version >= '3.7'
16-
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_version < '4'
16+
urllib3==1.26.12; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4, 3.5' and python_full_version < '4.0.0'
1717
wrapt==1.14.1; python_version >= '2.7' and python_version not in '3.0, 3.1, 3.2, 3.3, 3.4'

0 commit comments

Comments
 (0)