From 37c88edd4b3ace854426e9d50d23392679c34770 Mon Sep 17 00:00:00 2001 From: Joni Harker Date: Wed, 25 Sep 2024 16:39:13 -0700 Subject: [PATCH 1/2] Fix Coveralls workflow Fix the integration between coverage and coveralls, and respect Pipfile.lock --- .github/workflows/test.yaml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index c1fbb10..6bba3be 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -25,10 +25,14 @@ jobs: with: python-version: 3.8 - run: pip install -U pipenv - - run: pipenv install --dev + - run: pipenv sync --dev - 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 From f849e86a5803b462ff42f9ed8ec7ae3c29db7e60 Mon Sep 17 00:00:00 2001 From: Joni Harker Date: Wed, 25 Sep 2024 16:40:11 -0700 Subject: [PATCH 2/2] Fix pre-commit GH action --- .pre-commit-config.yaml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6dbce3c..b516a6c 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,20 +1,20 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.3.0 + rev: v4.6.0 hooks: - id: end-of-file-fixer - id: trailing-whitespace - id: check-ast - repo: https://github.com/adrienverge/yamllint - rev: v1.27.1 + rev: v1.35.1 hooks: - id: yamllint - repo: https://github.com/awslabs/cfn-python-lint - rev: v0.61.3 + rev: v1.15.1 hooks: - id: cfn-python-lint files: template\.(json|yml|yaml)$ - repo: https://github.com/Lucas-C/pre-commit-hooks - rev: v1.3.0 + rev: v1.5.5 hooks: - id: remove-tabs