Skip to content

Commit 74c2d23

Browse files
committed
test: push trigger
1 parent 14c4220 commit 74c2d23

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed
Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,32 @@
11
name: Testinfra Test Only
2-
32
on:
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
1112
env:
1213
AWS_REGION: ap-southeast-1
1314
AWS_DEFAULT_REGION: ap-southeast-1
14-
1515
jobs:
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

0 commit comments

Comments
 (0)