From bfe6c375a0aa176667d52512ab5c82e91160d23d Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 31 Aug 2026 22:30:57 -0700 Subject: [PATCH 1/5] missing codecov reports --- .github/workflows/run-tests.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index eda83ea..59eeb78 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -44,11 +44,12 @@ jobs: python-version: ${{ matrix.python }} - name: Install tox - run: python -m pip install tox + run: python -m pip install tox coverage - name: Run tests run: | - tox -e default -- --cov --cov-branch --cov-report=xml + tox \ + -- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args - name: Check for codecov token availability id: codecov-check From f1ad07e942465dc819611eb0029b52e0a18821fc Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 31 Aug 2026 22:39:58 -0700 Subject: [PATCH 2/5] update coveragerc --- .coveragerc | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.coveragerc b/.coveragerc index a920d99..7235976 100644 --- a/.coveragerc +++ b/.coveragerc @@ -1,13 +1,28 @@ +# .coveragerc to control coverage.py [run] +branch = True source = src omit = tests/* +[paths] +source = + src/ + */site-packages/ + [report] +# Regexes for lines to exclude from consideration exclude_lines = + # Have to re-enable the standard pragma pragma: no cover + + # Don't complain about missing debug-only code: def __repr__ - if self.debug: + if self\.debug + + # Don't complain if tests don't hit defensive assertion code: raise AssertionError raise NotImplementedError + + # Don't complain if non-runnable code isn't run: if 0: if __name__ == .__main__.: From 8746e78d115eb0e32eef4e768268fbb0875e4b50 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 31 Aug 2026 22:45:49 -0700 Subject: [PATCH 3/5] try again --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 59eeb78..ce41c66 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -64,7 +64,7 @@ jobs: - name: Upload coverage reports to Codecov with GitHub Action uses: codecov/codecov-action@v7 if: ${{ steps.codecov-check.outputs.codecov == 'true' }} - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + with: + token: ${{ secrets.CODECOV_TOKEN }} slug: ${{ github.repository }} flags: ${{ matrix.platform }} - py${{ matrix.python }} From 741a0ebedf29dbfd474dc2143b4d4be72d2543da Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 31 Aug 2026 23:13:38 -0700 Subject: [PATCH 4/5] update bandit config --- pyproject.toml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pyproject.toml b/pyproject.toml index 94ac09c..dd69155 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -106,3 +106,7 @@ addopts = "--cov --cov-report term-missing" testpaths = [ "tests", ] + +[tool.bandit] +exclude_dirs = ["tests"] +skips = ["B110"] From 44c58d63a911e46114ec030f32a6f01ca9b186b2 Mon Sep 17 00:00:00 2001 From: Jayaram Kancherla Date: Mon, 31 Aug 2026 23:26:19 -0700 Subject: [PATCH 5/5] fix line continuation --- .github/workflows/run-tests.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ce41c66..ca79fe4 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -47,8 +47,8 @@ jobs: run: python -m pip install tox coverage - name: Run tests - run: | - tox \ + run: >- + tox -- -rFEx --durations 10 --color yes --cov --cov-branch --cov-report=xml # pytest args - name: Check for codecov token availability