steps: backend: image: python:3-bookworm environment: - ANSIBLE_HOST_KEY_CHECKING=False commands: - export PATH=$PATH:/root/.local/bin - eval "$(ssh-agent -s)" - make ci.init - tofu -chdir=terraform/mcaptcha/ init - tofu -chdir=terraform/mcaptcha/ plan -var-file="ci.tfvars" -out="mcaptcha" - tofu -chdir=terraform/mcaptcha/ apply "mcaptcha" - pip install virtualenv && virtualenv venv - . venv/bin/activate && pip install ansible pytest-testinfra requests - . venv/bin/activate && ansible-galaxy install -r ./ansible/requirements.yml - . venv/bin/activate && ansible-playbook --become -i terraform/mcaptcha/hosts.ini ./ansible/mcaptcha.yml - cat terraform/mcaptcha/hosts.ini - export ANSIBLE_REMOTE_USER=root - . venv/bin/activate && py.test --hosts="ansible://mcaptcha_hosts" --ansible-inventory=terraform/mcaptcha/hosts.ini --verbose tests/cache/base.py - . venv/bin/activate && py.test --hosts="ansible://mcaptcha_hosts" --ansible-inventory=terraform/mcaptcha/hosts.ini --verbose tests/mcaptcha/base.py - make ci.clean secrets: [TEST_NODE_SSH_KEY]