Testinfra Test Only #4
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |