From 8acfa9d37b25d99ef5a53d87e76c5eebd7463802 Mon Sep 17 00:00:00 2001 From: Jason Madden Date: Fri, 20 Feb 2026 10:12:36 -0600 Subject: [PATCH] Use tox to run the tests; avoid an editable install because we're getting namespace errors. --- .github/workflows/tests.yml | 10 ++++------ tox.ini | 2 ++ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 384f671..b6530cb 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -31,15 +31,13 @@ jobs: cache-dependency-path: 'setup.py' - name: Install dependencies run: | - python -m pip install -U pip setuptools wheel - python -m pip install -U coverage zope.testrunner - python -m pip install -U -e ".[test]" + python -m pip install -U pip + python -m pip install -U tox - name: Test run: | - coverage run -m zope.testrunner --test-path=src - coverage report + tox -v -e py - name: Lint if: matrix.python-version == '3.12' run: | - python -m pip install -U pylint + python -m pip install -U pylint ".[test]" pylint src diff --git a/tox.ini b/tox.ini index 342cf88..b781669 100644 --- a/tox.ini +++ b/tox.ini @@ -10,6 +10,8 @@ deps = zope.testrunner commands = coverage run -p -m zope.testrunner --test-path=src + coverage combine + coverage report passenv = HOME [testenv:docs]