-
Notifications
You must be signed in to change notification settings - Fork 2
44 lines (36 loc) · 1.11 KB
/
test.yml
File metadata and controls
44 lines (36 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
version: "latest"
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Check lock file is current
run: uv lock --check
- name: Build OpenClaw plugin bundle
working-directory: keep/data/openclaw-plugin
run: |
npm ci
node build.mjs
- name: Install dependencies
run: uv sync --python ${{ matrix.python-version }} --extra dev --extra langchain
- name: Run tests
run: uv run --python ${{ matrix.python-version }} pytest --tb=short -q -m "not slow and not e2e"
env:
# Dummy key so config detects a provider; mock_providers fixture
# intercepts before any real API call is made
OPENAI_API_KEY: sk-test-ci-dummy-key