Skip to content

✨ Make the template owner and repository a variable #104

✨ Make the template owner and repository a variable

✨ Make the template owner and repository a variable #104

name: Terraform Unit Tests
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions:
contents: read
env:
TF_VAR_github_token: ${{ secrets.TERRAFORM_TEST_ORG_PAT }}
TF_IN_AUTOMATION: true
jobs:
terraform-tests:
name: Run Terraform Python Unit Tests
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up Python
uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # 5.1.1
with:
python-version: '3.11'
- name: Install Python Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Terraform Unit Tests
run: |
pytest test/