Skip to content

fix: CachedSpanFetcher no longer caches empty results permanently #175

fix: CachedSpanFetcher no longer caches empty results permanently

fix: CachedSpanFetcher no longer caches empty results permanently #175

Workflow file for this run

name: py
on:
pull_request:
paths:
- "py/**"
- "integrations/langchain-py/**"
- "integrations/adk-py/**"
- ".github/workflows/py.yaml"
- ".github/workflows/adk-py-test.yaml"
- ".github/workflows/langchain-py-test.yaml"
push:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
os: [ubuntu-latest, windows-latest]
shard: [0, 1]
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up mise
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
cache: true
experimental: true
install_args: python@${{ matrix.python-version }}
- name: Install dependencies
run: |
mise exec python@${{ matrix.python-version }} -- make -C py install-dev
- name: Test whether the Python SDK can be installed
run: |
# This is already done by make install-dev, but we're keeping this as a separate step
# to explicitly verify that installation works
mise exec python@${{ matrix.python-version }} -- python -m uv pip install -e ./py[all]
- name: Test whether the Python SDK can be imported
run: |
mise exec python@${{ matrix.python-version }} -- python -c 'import braintrust'
- name: Run nox tests (shard ${{ matrix.shard }}/2)
shell: bash
run: |
mise exec python@${{ matrix.python-version }} -- bash ./py/scripts/nox-matrix.sh ${{ matrix.shard }} 2
adk-py:
uses: ./.github/workflows/adk-py-test.yaml
langchain-py:
uses: ./.github/workflows/langchain-py-test.yaml
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest]
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
upload-wheel:
needs: build
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
- name: Set up mise
uses: jdx/mise-action@5228313ee0372e111a38da051671ca30fc5a96db # v3.6.3
with:
cache: true
experimental: true
- name: Install build dependencies and build wheel
run: |
mise exec -- make -C py install-build-deps build
- name: Upload wheel as artifact
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: python-wheel
path: py/dist/*.whl
retention-days: 5