fix(weave): annotate _prepare_feedback_create #35309
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Node.js Tests | |
| on: | |
| push: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| node-version: [20] | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Install pnpm | |
| uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4 | |
| with: | |
| version: 9 | |
| run_install: false | |
| - name: Use Node.js ${{ matrix.node-version }} | |
| uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4 | |
| with: | |
| node-version: ${{ matrix.node-version }} | |
| cache: 'pnpm' | |
| cache-dependency-path: sdks/node/pnpm-lock.yaml | |
| - name: Install dependencies | |
| run: pnpm install | |
| working-directory: sdks/node | |
| # The hostApps Jest project (src/__tests__/hostApps/) spawns the | |
| # Python Weave trace-server mock via `uv run python -m trace_server_mock` | |
| # in its globalSetup. uv is required on PATH; uv handles the Python | |
| # toolchain itself. | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7 | |
| with: | |
| version: "0.11.19" | |
| - name: Run tests | |
| run: pnpm test | |
| working-directory: sdks/node | |
| env: | |
| # Use dummy API key when secrets aren't available (e.g., Dependabot PRs) | |
| WANDB_API_KEY: ${{ secrets.WANDB_API_KEY || 'DUMMY_API_KEY' }} |