add needed dev requirements
This commit is contained in:
parent
af20c6da16
commit
e84ebc2bfb
2 changed files with 25 additions and 14 deletions
|
@ -1,8 +1,21 @@
|
|||
image: "python:3.7"
|
||||
image: "python:3.8"
|
||||
|
||||
before_script:
|
||||
- python --version
|
||||
- pip install -r requirements.txt
|
||||
- pip install -r dev_requirements.txt
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
flake8:
|
||||
stage: test
|
||||
script:
|
||||
- flake8 --max-line-length=120 python_terraform/*.py
|
||||
|
||||
pytest:
|
||||
stage: test
|
||||
script:
|
||||
- export TFVER=0.13.4
|
||||
- export TFURL=https://releases.hashicorp.com/terraform/
|
||||
- TFURL+=$TFVER
|
||||
|
@ -12,17 +25,4 @@ before_script:
|
|||
- wget $TFURL -O terraform_bin.zip
|
||||
- mkdir tf_bin
|
||||
- unzip terraform_bin.zip -d tf_bin
|
||||
|
||||
stages:
|
||||
- test
|
||||
|
||||
flake8:
|
||||
stage: test
|
||||
script:
|
||||
- flake8 --max-line-length=120 python_terraform/*.py
|
||||
|
||||
|
||||
pytest:
|
||||
stage: test
|
||||
script:
|
||||
- PATH=$PATH:$PWD/tf_bin pytest -v
|
||||
|
|
11
dev_requirements.txt
Normal file
11
dev_requirements.txt
Normal file
|
@ -0,0 +1,11 @@
|
|||
coverage==5.3
|
||||
flake8==3.8.4
|
||||
flake8-polyfill==1.0.2
|
||||
mypy==0.790
|
||||
mypy-extensions==0.4.3
|
||||
pycodestyle==2.6.0
|
||||
pyflakes==2.2.0
|
||||
pylint==2.6.0
|
||||
pytest==6.1.2
|
||||
pytest-cov==2.10.1
|
||||
pytest-datafiles==2.0
|
Loading…
Reference in a new issue