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 0e04e65
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ jobs:
- name: Install dependencies (including dev dependencies)
run: pipenv install --dev

# See [2] for why we use "python -m pytest" instead of just "pytest"
- name: Run Pytest
run: pipenv run pytest .
run: pipenv run python3 -m pytest



# [1] https://github.com/orgs/community/discussions/26366
# [1] https://github.com/orgs/community/discussions/26366
# [2] https://docs.pytest.org/en/latest/explanation/pythonpath.html#invoking-pytest-versus-python-m-pytest
Empty file added tests/__init__.py
Empty file.

0 comments on commit 0e04e65

Please sign in to comment.