Skip to content

Commit

Permalink
Add required deps only on test env
Browse files Browse the repository at this point in the history
  • Loading branch information
mpangrazzi committed Dec 19, 2024
1 parent 83327a7 commit 54a45ee
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@ jobs:
- name: Install Hatch
run: pip install hatch==${{ env.HATCH_VERSION }}

- name: Run tests
run: hatch run test
- name: Run unit and integration tests
run: hatch run test:all
23 changes: 13 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,15 +43,9 @@ hayhooks = "hayhooks.cli:hayhooks"
[tool.hatch.version]
source = "vcs"

[tool.hatch.envs.default]
dependencies = [
"coverage[toml]>=6.5",
"pytest",
"pytest-mock",
]
[tool.hatch.envs.default.scripts]
test = "pytest -vv -s {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
[tool.hatch.envs.test.scripts]
all = "pytest -vv {args:tests}"
all-cov = "coverage run -m pytest {args:tests}"
cov-report = [
"- coverage combine",
"coverage report",
Expand All @@ -61,8 +55,17 @@ cov = [
"cov-report",
]

[tool.hatch.envs.test]
extra-dependencies = [
"coverage[toml]>=6.5",
"pytest",
"pytest-mock",
"qdrant-haystack",
"trafilatura",
]

[[tool.hatch.envs.all.matrix]]
python = ["3.10", "3.11", "3.12"]
python = ["3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.lint]
detached = true
Expand Down

0 comments on commit 54a45ee

Please sign in to comment.