Skip to content

Commit 2195623

Browse files
authored
ci: Add generate docs to Nvidia workflow (#603)
1 parent 5617d2b commit 2195623

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

.github/workflows/nvidia.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -57,13 +57,17 @@ jobs:
5757
id: tests
5858
run: hatch run cov
5959

60+
- name: Generate docs
61+
if: matrix.python-version == '3.9' && runner.os == 'Linux'
62+
run: hatch run docs
63+
6064
- name: Nightly - run unit tests with Haystack main branch
6165
if: github.event_name == 'schedule'
6266
id: nightly-haystack-main
6367
run: |
6468
hatch run pip install git+https://github.com/deepset-ai/haystack.git
6569
hatch run test -m "not integration"
66-
70+
6771
- name: Send event to Datadog for nightly failures
6872
if: failure() && github.event_name == 'schedule'
6973
uses: ./.github/actions/send_failure
@@ -72,4 +76,4 @@ jobs:
7276
core-integrations failure:
7377
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
7478
- ${{ github.workflow }}
75-
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
79+
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}

integrations/nvidia/pydoc/config.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ loaders:
55
[
66
"haystack_integrations.components.embedders.nvidia.document_embedder",
77
"haystack_integrations.components.embedders.nvidia.text_embedder",
8-
"haystack_integrations.components.embedders.nvidia.models",
8+
"haystack_integrations.components.generators.nvidia.generator",
99
]
1010
ignore_when_discovered: ["__init__"]
1111
processors:

integrations/nvidia/pyproject.toml

+3-7
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ test = "pytest {args:tests}"
4747
test-cov = "coverage run -m pytest {args:tests}"
4848
cov-report = ["- coverage combine", "coverage report"]
4949
cov = ["test-cov", "cov-report"]
50-
docs = ["echo 'skip doc gen'"]
50+
docs = ["pydoc-markdown pydoc/config.yml"]
5151

5252
[[tool.hatch.envs.all.matrix]]
5353
python = ["3.8", "3.9", "3.10", "3.11"]
@@ -136,12 +136,8 @@ parallel = false
136136

137137
[tool.coverage.report]
138138
omit = ["*/tests/*", "*/__init__.py"]
139-
show_missing=true
140-
exclude_lines = [
141-
"no cov",
142-
"if __name__ == .__main__.:",
143-
"if TYPE_CHECKING:",
144-
]
139+
show_missing = true
140+
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
145141

146142

147143
[[tool.mypy.overrides]]

0 commit comments

Comments
 (0)