File tree 2 files changed +47
-0
lines changed
2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change
1
+ # This workflow will install Python dependencies, run tests and lint with a single version of Python
2
+ # For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3
+
4
+ name : CloudFormation Python Plugin CI
5
+
6
+ on :
7
+ push :
8
+ branches : [ master ]
9
+ pull_request :
10
+ branches : [ master ]
11
+
12
+ jobs :
13
+ build :
14
+ env :
15
+ AWS_DEFAULT_REGION : us-east-1
16
+ runs-on : ubuntu-latest
17
+ strategy :
18
+ matrix :
19
+ python : [3.6, 3.7, 3.8, 3.9]
20
+ steps :
21
+ - uses : actions/checkout@v2
22
+ - name : Set up Python ${{ matrix.python }}
23
+ uses : actions/setup-python@v2
24
+ with :
25
+ python-version : ${{ matrix.python }}
26
+ - name : Install dependencies
27
+ run : |
28
+ python -m pip install --upgrade pip
29
+ pip install --upgrade pip mypy 'attrs==19.2.0' -r https://raw.githubusercontent.com/aws-cloudformation/aws-cloudformation-rpdk/master/requirements.txt
30
+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
31
+ - name : Install both plugin and support lib
32
+ run : |
33
+ pip install . src/
34
+ - name : pre-commit checks
35
+ run : |
36
+ pre-commit run --all-files
37
+ - name : End to End Resource Packaging Test Python 3.6
38
+ run : ./e2e-test.sh python36
39
+ - name : End to End Resource Packaging Test Python 3.7
40
+ run : ./e2e-test.sh python37
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ DIR=$( mktemp -d)
3
+ cd " $DIR "
4
+ ls -la
5
+ cfn init -t AWS::Foo::Bar $1 --use-docker
6
+ ls -la
7
+ mypy src/aws_foo_bar/ --strict --implicit-reexport
You can’t perform that action at this time.
0 commit comments