Skip to content

Commit

Permalink
ci: Add generate docs to Nvidia workflow (#603)
Browse files Browse the repository at this point in the history
  • Loading branch information
shadeMe authored Mar 19, 2024
1 parent 5617d2b commit 2195623
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/nvidia.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,17 @@ jobs:
id: tests
run: hatch run cov

- name: Generate docs
if: matrix.python-version == '3.9' && runner.os == 'Linux'
run: hatch run docs

- name: Nightly - run unit tests with Haystack main branch
if: github.event_name == 'schedule'
id: nightly-haystack-main
run: |
hatch run pip install git+https://github.com/deepset-ai/haystack.git
hatch run test -m "not integration"
- name: Send event to Datadog for nightly failures
if: failure() && github.event_name == 'schedule'
uses: ./.github/actions/send_failure
Expand All @@ -72,4 +76,4 @@ jobs:
core-integrations failure:
${{ (steps.tests.conclusion == 'nightly-haystack-main') && 'nightly-haystack-main' || 'tests' }}
- ${{ github.workflow }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
api-key: ${{ secrets.CORE_DATADOG_API_KEY }}
2 changes: 1 addition & 1 deletion integrations/nvidia/pydoc/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ loaders:
[
"haystack_integrations.components.embedders.nvidia.document_embedder",
"haystack_integrations.components.embedders.nvidia.text_embedder",
"haystack_integrations.components.embedders.nvidia.models",
"haystack_integrations.components.generators.nvidia.generator",
]
ignore_when_discovered: ["__init__"]
processors:
Expand Down
10 changes: 3 additions & 7 deletions integrations/nvidia/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ test = "pytest {args:tests}"
test-cov = "coverage run -m pytest {args:tests}"
cov-report = ["- coverage combine", "coverage report"]
cov = ["test-cov", "cov-report"]
docs = ["echo 'skip doc gen'"]
docs = ["pydoc-markdown pydoc/config.yml"]

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

[tool.coverage.report]
omit = ["*/tests/*", "*/__init__.py"]
show_missing=true
exclude_lines = [
"no cov",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
]
show_missing = true
exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]


[[tool.mypy.overrides]]
Expand Down

0 comments on commit 2195623

Please sign in to comment.