Bump terraform-docs/gh-actions from 1.0.0 to 1.3.0 #101
This file contains 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: 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/ |