-
Notifications
You must be signed in to change notification settings - Fork 56
53 lines (45 loc) · 1.65 KB
/
runner-tests.yml
File metadata and controls
53 lines (45 loc) · 1.65 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
51
52
53
name: Claude Code Runner Tests
on:
pull_request:
paths:
- 'components/runners/ambient-runner/**'
- '.github/workflows/runner-tests.yml'
push:
branches: [main]
paths:
- 'components/runners/ambient-runner/**'
- '.github/workflows/runner-tests.yml'
jobs:
test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: components/runners/ambient-runner
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.11'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -e .
pip install pytest pytest-asyncio pytest-cov
- name: Run unit tests for observability and security_utils
run: |
# Only run standalone unit tests that don't require runner_shell runtime
# (test_model_mapping.py and test_wrapper_vertex.py require full runtime environment)
pytest tests/test_observability.py tests/test_security_utils.py tests/test_privacy_masking.py -v --tb=short --color=yes
- name: Run tests with coverage
run: |
pytest tests/test_observability.py tests/test_security_utils.py tests/test_privacy_masking.py --cov=observability --cov=security_utils --cov-report=term-missing --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./components/runners/ambient-runner/coverage.xml
flags: runner
name: ambient-runner
fail_ci_if_error: false