generated from zaro0508/lambda-template
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update dependencies and Python version. Don't regenerate Pipfile.lock during tests. Explicitly generate an LCOV file to pass to Coveralls, and don't fail the test if coveralls gives an error.
- Loading branch information
1 parent
3733380
commit c75ce9e
Showing
7 changed files
with
1,012 additions
and
1,049 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,7 +13,7 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.11 | ||
- uses: pre-commit/[email protected] | ||
|
||
pytest: | ||
|
@@ -23,12 +23,17 @@ jobs: | |
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
python-version: 3.11 | ||
- run: pip install -U pipenv | ||
- run: pipenv install --dev | ||
- run: pipenv sync --dev | ||
- run: pipenv run pip freeze | ||
- run: pipenv run coverage run -m pytest tests/ -svv | ||
- run: pipenv run coverage lcov | ||
- name: upload coverage to coveralls | ||
uses: coverallsapp/github-action@v2 | ||
with: | ||
file: coverage.lcov | ||
fail-on-error: false | ||
|
||
sam-build-and-lint: | ||
runs-on: ubuntu-latest | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ coverage.xml | |
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
coverage.lcov | ||
|
||
# Translations | ||
*.mo | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,20 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.0.1 | ||
rev: v4.6.0 | ||
hooks: | ||
- id: end-of-file-fixer | ||
- id: trailing-whitespace | ||
- id: check-ast | ||
- repo: https://github.com/adrienverge/yamllint | ||
rev: v1.26.3 | ||
rev: v1.35.1 | ||
hooks: | ||
- id: yamllint | ||
- repo: https://github.com/awslabs/cfn-python-lint | ||
rev: v0.56.0 | ||
rev: v1.14.2 | ||
hooks: | ||
- id: cfn-python-lint | ||
files: template\.(json|yml|yaml)$ | ||
- repo: https://github.com/Lucas-C/pre-commit-hooks | ||
rev: v1.1.10 | ||
rev: v1.5.5 | ||
hooks: | ||
- id: remove-tabs |
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
Large diffs are not rendered by default.
Oops, something went wrong.
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