Skip to content

Commit

Permalink
Invoke pytest correctly in Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Splines committed Mar 14, 2024
1 parent ab951b1 commit 6e000d5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
# [1] https://github.com/orgs/community/discussions/26366
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down

0 comments on commit 6e000d5

Please sign in to comment.