Skip to content

Testinfra Test Only

Testinfra Test Only #4

Workflow file for this run

name: Testinfra Test Only
permissions:
contents: read
id-token: write
on:
workflow_dispatch:
inputs:
ami_name:
description: 'AMI name to test'
required: true
type: string
push:
branches:
- sam/build-ami-local
env:
AWS_REGION: ap-southeast-1
AWS_DEFAULT_REGION: ap-southeast-1
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run tests
timeout-minutes: 10
env:
AMI_NAME: ${{ github.event.inputs.ami_name }}
run: |
# TODO: use poetry for pkg mgmt
pip3 install boto3 boto3-stubs[essential] docker ec2instanceconnectcli pytest pytest-testinfra[paramiko,docker] requests
pytest -vv -s testinfra/test_ami_nix.py