diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 29e74cad..d6da7942 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -29,9 +29,12 @@ jobs: - name: Install dependencies (including dev dependencies) run: pipenv install --dev + - name: Install ResultWizard itself (as editable) + run: pipenv run pip3 install --editable . + - name: Run Pytest - run: pipenv run pytest . + run: pipenv run pytest tests/ -# [1] https://github.com/orgs/community/discussions/26366 \ No newline at end of file +# [1] https://github.com/orgs/community/discussions/26366 diff --git a/pyproject.toml b/pyproject.toml index fe027305..3f906bed 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -52,6 +52,11 @@ Repository = "https://github.com/paul019/ValueWizard" Issues = "https://github.com/paul019/ValueWizard/issues" Changelog = "https://github.com/paul019/ValueWizard/blob/main/CHANGELOG.md" +[tool.pytest.ini_options] +addopts = [ + "--import-mode=importlib", +] + # TODO: Add these checks back [tool.pylint."messages control"] disable = [