Last active
December 2, 2020 15:48
-
-
Save thomaspoignant/1ce98041dc6041264e9e80f108867e13 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
language: python | |
python: "3.8" | |
stages: | |
- test | |
before_install: | |
- npm i -g [email protected] # Install CDK | |
- pip install -r requirements.txt --use-feature=2020-resolver # Download CDK python depedencies | |
jobs: | |
include: | |
- stage: test | |
name: "Test" | |
script: | |
- pytest --junitxml=junit-report.xml | |
- stage: test | |
name: "Lint" | |
before_script: | |
- pip install yamllint flake8 flake8-checkstyle | |
script: | |
- flake8 $(shell git ls-files '*.py') | |
- yamllint -f parsable $(shell git ls-files '*.yml' '*.yaml') | |
- stage: test | |
name: "Coverage" | |
before_script: | |
- pip install coverage | |
script: | |
- coverage run --omit "*/virtualenv/*,*/tests/*" -m pytest | |
- stage: test | |
script: | |
- cdk synth -c stage=dev | |
- stage: test | |
script: | |
- cdk synth -c stage=pre | |
- stage: test | |
script: | |
- cdk synth -c stage=pro |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment