Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/tests-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@ jobs:

- name: Install
run: |
uv sync --group tests
uv sync --group tests --extra mistral

- name: Run Documentation tests
env:
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: pytest tests/docs -v --cov --cov-report=xml

- name: Upload coverage reports to Codecov
Expand Down
10 changes: 2 additions & 8 deletions tests/docs/test_all.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import pathlib
from typing import Any
from unittest.mock import patch

import pytest
from mktestdocs import check_md_file
Expand All @@ -11,9 +9,5 @@
list(pathlib.Path("docs").glob("**/*.md")),
ids=str,
)
def test_all_docs(doc_file: pathlib.Path, monkeypatch: Any) -> None:
monkeypatch.setenv("MISTRAL_API_KEY", "test_key")
with (
patch("any_llm.any_llm.AnyLLM.create"),
):
check_md_file(fpath=doc_file, memory=True) # type: ignore[no-untyped-call]
def test_all_docs(doc_file: pathlib.Path) -> None:
check_md_file(fpath=doc_file, memory=True) # type: ignore[no-untyped-call]