image: "python:3.8" before_script: - python --version - pip install . - pip install -r dev_requirements.txt stages: - lint - test flake8: stage: lint allow_failure: true script: - flake8 --max-line-length=120 python_terraform/*.py mypy: stage: lint allow_failure: true script: - python -m mypy python_terraform/terraform.py - python -m mypy python_terraform/tfstate.py pylint: stage: lint allow_failure: true script: - pylint -d C0301 python_terraform/*.py pytest: stage: test script: - export TFVER=0.13.4 - export TFURL=https://releases.hashicorp.com/terraform/ - TFURL+=$TFVER - TFURL+="/terraform_" - TFURL+=$TFVER - TFURL+="_linux_amd64.zip" - wget $TFURL -O terraform_bin.zip - mkdir tf_bin - unzip terraform_bin.zip -d tf_bin - PATH=$PATH:$PWD/tf_bin - pytest -v