diff --git a/.github/workflows/nvidia.yml b/.github/workflows/nvidia.yml index eef8e0c31..316e509be 100644 --- a/.github/workflows/nvidia.yml +++ b/.github/workflows/nvidia.yml @@ -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 @@ -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 }} \ No newline at end of file + api-key: ${{ secrets.CORE_DATADOG_API_KEY }} diff --git a/integrations/nvidia/pydoc/config.yml b/integrations/nvidia/pydoc/config.yml index 392157299..7e9811d25 100644 --- a/integrations/nvidia/pydoc/config.yml +++ b/integrations/nvidia/pydoc/config.yml @@ -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: diff --git a/integrations/nvidia/pyproject.toml b/integrations/nvidia/pyproject.toml index 73a984ece..69e80856b 100644 --- a/integrations/nvidia/pyproject.toml +++ b/integrations/nvidia/pyproject.toml @@ -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"] @@ -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]]