Skip to content

Commit

Permalink
Added pytest testpaths to shorten invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbraza committed Mar 8, 2024
1 parent e0b9ccd commit c996a62
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,4 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
run: |
pytest tests
run: pytest
7 changes: 7 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,13 @@ module = [
"sentence_transformers", # SEE: https://github.com/UKPLab/sentence-transformers/issues/1723
]

[tool.pytest.ini_options]
# List of directories that should be searched for tests when no specific directories,
# files or test ids are given in the command line when executing pytest from the rootdir
# directory. File system paths may use shell-style wildcards, including the recursive **
# pattern.
testpaths = ["tests"]

[tool.ruff]
# Line length to use when enforcing long-lines violations (like `E501`).
line-length = 120
Expand Down

0 comments on commit c996a62

Please sign in to comment.