feat(parse_regions): Add AWS regions parser && Dockerfile (#1537)

This commit is contained in:
Sergio Garcia
2022-12-13 19:00:43 +01:00
committed by GitHub
parent bb09267f2a
commit 388c0b2b9f
10 changed files with 5984 additions and 2 deletions

View File

@@ -27,6 +27,11 @@ jobs:
pip install pipenv
pipenv install --dev
pipenv run pip list
VERSION=$(curl --silent "https://api.github.com/repos/hadolint/hadolint/releases/latest" | \
grep '"tag_name":' | \
sed -E 's/.*"v([^"]+)".*/\1/' \
) && curl -L -o /tmp/hadolint https://github.com/hadolint/hadolint/releases/download/v${VERSION}/hadolint-Linux-x86_64 \
&& chmod +x /tmp/hadolint
- name: Lint with flake8
run: |
pipenv run flake8 . --ignore=E266,W503,E203,E501,W605,E128 --exclude contrib
@@ -45,6 +50,9 @@ jobs:
- name: Vulture
run: |
pipenv run vulture --exclude "contrib" --min-confidence 100 .
- name: Hadolint
run: |
/tmp/hadolint Dockerfile --ignore=DL3013
- name: Test with pytest
run: |
pipenv run pytest tests -n auto