Skip to content

test(brains/anthropic): cover tool_use surfacing and finish mapping #115

test(brains/anthropic): cover tool_use surfacing and finish mapping

test(brains/anthropic): cover tool_use surfacing and finish mapping #115

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
name: Test on Python ${{ matrix.python }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install
run: |
python -m pip install --upgrade pip
pip install -e '.[server,dev,crypto]'
- name: Lint (warnings only)
continue-on-error: true
run: |
ruff check zhub/ tests/ || true
- name: Test
run: |
pytest -v
kotlin-test:
name: Kotlin module test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: '17'
- name: Set up Gradle
uses: gradle/actions/setup-gradle@v3
- name: Build + test kotlin module
working-directory: kotlin
run: |
gradle test build --no-daemon --stacktrace
js-test:
name: JS/TS module test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Node 20
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Clean install
working-directory: js
# Lockfile was generated on Termux where rollup native binding
# is broken — `npm ci` may diverge in CI. Use a clean `npm install`
# without cache to get fresh, complete deps.
run: |
rm -f package-lock.json
npm install --no-audit --no-fund
- name: Type check
working-directory: js
run: npx tsc -p tsconfig.json --noEmit
- name: Test
working-directory: js
run: npm test