File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change 11name : Testinfra Test Only
2-
32on :
43 workflow_dispatch :
54 inputs :
65 ami_name :
76 description : ' AMI name to test'
87 required : true
98 type : string
10-
9+ push :
10+ branches :
11+ - sam/build-ami-local
1112env :
1213 AWS_REGION : ap-southeast-1
1314 AWS_DEFAULT_REGION : ap-southeast-1
14-
1515jobs :
1616 test :
1717 runs-on : ubuntu-latest
1818 steps :
1919 - uses : actions/checkout@v4
20-
2120 - name : Configure AWS credentials
2221 uses : aws-actions/configure-aws-credentials@v4
2322 with :
2423 role-to-assume : arn:aws:iam::${{ secrets.AWS_ACCOUNT_ID }}:role/github-actions-role
2524 aws-region : ${{ env.AWS_REGION }}
26-
2725 - name : Run tests
2826 timeout-minutes : 10
2927 env :
3028 AMI_NAME : ${{ github.event.inputs.ami_name }}
3129 run : |
3230 # TODO: use poetry for pkg mgmt
3331 pip3 install boto3 boto3-stubs[essential] docker ec2instanceconnectcli pytest pytest-testinfra[paramiko,docker] requests
34- pytest -vv -s testinfra/test_ami_nix.py
32+ pytest -vv -s testinfra/test_ami_nix.py
You can’t perform that action at this time.
0 commit comments