Repository navigation
50 lines (50 loc) · 2 KB
/
Copy pathcapacity.yml
File metadata and controls
50 lines (50 loc) · 2 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
45
46
47
48
49
50
name: Task capacity contracts
on:
pull_request:
paths:
- 'components/web-client.source.json'
- 'scripts/web_client_*.py'
- 'components/web-client/commands.json'
- 'amplifier_web/capacity.py'
- 'amplifier_web/execution*.py'
- 'amplifier_web/history_revision.py'
- 'amplifier_web/runtime*.py'
- 'amplifier_web/response_completion.py'
- 'tests/test_response_completion.py'
- 'amplifier_web/task_continuity.py'
- 'amplifier_web/service.py'
- 'components/web-client/src/capacity.jsx'
- 'components/web-client/src/runtime-settings.jsx'
- 'tests/test_capacity.py'
- 'tests/fixtures/capacity_ui_server.py'
- 'tests/web/capacity-browser.mjs'
- '.github/workflows/capacity.yml'
permissions:
contents: read
jobs:
contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5
with:
python-version: '3.13'
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: '22'
cache: npm
cache-dependency-path: |
tests/web/package-lock.json
components/web-client.source.json
- name: Prepare selected client source for host checks
run: |
python scripts/web_client_build.py prepare
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6
- run: uv sync --locked --group dev
- run: uv run --no-sync pytest tests/test_capacity.py tests/test_execution.py tests/test_execution_events.py tests/test_task_continuity.py tests/test_runtime.py tests/test_response_completion.py tests/test_session_fork.py -q
- run: |
npm ci --prefix .build/web-client
npm ci --prefix tests/web
- run: |
python scripts/web_client_build.py build
# Browser coverage is available in browser-checks.yml (manual only).