forked from agentscope-ai/agentscope
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 975 Bytes
/
Copy pathunittest.yml
File metadata and controls
37 lines (35 loc) · 975 Bytes
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
name: Python Unittest Coverage
on: [push, pull_request]
jobs:
test:
if: false == contains(github.event.pull_request.title, 'WIP')
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-26]
python-version: ['3.11']
env:
OS: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Bubblewrap (Linux only)
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y bubblewrap
- name: Install Dev Dependencies
run: |
uv pip install -q -e .[dev]
uv pip install coverage pytest
- name: Run tests with coverage
env:
GRPC_VERBOSITY: ERROR
run: |
coverage run -m pytest tests -v
- name: Generate coverage report
run: |
coverage report -m