feat: add local langfuse tracing option (#106)

This commit is contained in:
Alice Hau
2024-10-10 14:50:06 -04:00
committed by GitHub
parent 30a1efe818
commit 56d88a8ac2
21 changed files with 387 additions and 10 deletions
+22 -1
View File
@@ -28,7 +28,7 @@ jobs:
uv run pytest tests -m 'not integration'
goose:
runs-on: ubuntu-latest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@@ -48,6 +48,27 @@ jobs:
run: |
uv run pytest tests -m 'not integration'
langfuse-wrapper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install UV
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Source Cargo Environment
run: source $HOME/.cargo/env
- name: Ruff
run: |
uvx ruff check packages/langfuse-wrapper
uvx ruff format packages/langfuse-wrapper --check
- name: Run tests
working-directory: ./packages/langfuse-wrapper
run: |
uv run pytest tests -m 'not integration'
# This runs integration tests of the OpenAI API, using Ollama to host models.
# This lets us test PRs from forks which can't access secrets like API keys.