Gracefully handle missing parameter #1082
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: Code analysis | |
on: | |
pull_request: | |
push: | |
env: | |
PIPENV_VENV_IN_PROJECT: enabled | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
id: setup-python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.9 | |
- name: Set up Terraform | |
uses: hashicorp/setup-terraform@v3 | |
# v1.3.2 | |
with: | |
terraform_version: 1.0.6 | |
- name: Install pipenv | |
run: python -m pip install --upgrade pipenv==2021.5.29 wheel | |
- name: Restore pipenv cache | |
id: cache-pipenv | |
uses: actions/cache@v4 | |
with: | |
path: ./.venv | |
key: codeanaysis-${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }} | |
- name: Install dependencies | |
if: steps.cache-pipenv.outputs.cache-hit != 'true' | |
run: pipenv install --deploy --dev | |
- name: Run pre-commit | |
uses: pre-commit/[email protected] |