feat: 实现上下文优化基础功能 #541
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test Cases Check | |
on: | |
push: | |
branches: [ 'main' ] | |
pull_request: | |
branches: [ '*' ] | |
permissions: | |
contents: read | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install the latest version of uv | |
uses: astral-sh/setup-uv@v6.3.1 | |
with: | |
version: "latest" | |
- name: Install dependencies | |
run: | | |
uv venv --python 3.12 | |
uv pip install -e ".[dev]" | |
uv pip install -e ".[test]" | |
- name: Run test cases with coverage | |
run: | | |
source .venv/bin/activate | |
TAVILY_API_KEY=mock-key make coverage | |
- name: Generate HTML Coverage Report | |
run: | | |
source .venv/bin/activate | |
python -m coverage html -d coverage_html | |
- name: Upload Coverage Report | |
uses: actions/upload-artifact@v4 | |
with: | |
name: coverage-report | |
path: coverage_html/ | |
- name: Display Coverage Summary | |
run: | | |
source .venv/bin/activate | |
python -m coverage report |