-
Notifications
You must be signed in to change notification settings - Fork 7
64 lines (55 loc) · 1.73 KB
/
Copy pathtest.yml
File metadata and controls
64 lines (55 loc) · 1.73 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
54
55
56
57
58
59
60
61
62
63
64
# Copyright (c) 2026 Cisco Systems, Inc. and its affiliates
# SPDX-License-Identifier: Apache-2.0
name: Test
on:
pull_request:
branches: [ main ]
paths:
- "runtime/**"
- "ctl/**"
- "lab/**"
- "library-standard/**"
- "library-eval/**"
- "tests/**"
- "docs/**"
- "examples/**"
- "Taskfile.yml"
- "pyproject.toml"
- "scripts/**"
- ".github/workflows/test.yml"
push:
branches: [ main ]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.11", "3.13" ]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "latest"
- name: Setup Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install go-task
run: |
sh -c "$(curl --location https://taskfile.dev/install.sh)" -- -d -b "${{ runner.temp }}/bin"
echo "${{ runner.temp }}/bin" >> "$GITHUB_PATH"
- name: CI gates (Taskfile ci = verify:literals + verify-unit + verify-controller + verify-functional + validate + verify-chat-smoke + verify-hitl-gate)
run: task ci
- name: Coverage gate (kernel, ctl.workspace, bench pipeline)
run: |
.venv/bin/pytest runtime/tests/ ctl/tests/ lab/components/bench/tests/ \
--cov=mas.runtime.kernel \
--cov=mas.runtime.machines \
--cov=mas.ctl.workspace \
--cov=mas.lab.benchmark.pipeline \
--cov-report=term-missing \
--cov-fail-under=0 \
-q