mirror of
https://github.com/HKUDS/nanobot.git
synced 2026-08-08 13:28:43 +03:00
fix(ci): stabilize and speed up CI (#5145)
This commit is contained in:
@@ -5,10 +5,28 @@ on:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- docs/**
|
||||
- .agent/**
|
||||
- .github/ISSUE_TEMPLATE/**
|
||||
- AGENTS.md
|
||||
- CLAUDE.md
|
||||
- COMMUNICATION.md
|
||||
- CONTRIBUTING.md
|
||||
- README.md
|
||||
- SECURITY.md
|
||||
- webui/README.md
|
||||
pull_request:
|
||||
branches: [main]
|
||||
paths-ignore:
|
||||
- docs/**
|
||||
- .agent/**
|
||||
- .github/ISSUE_TEMPLATE/**
|
||||
- AGENTS.md
|
||||
- CLAUDE.md
|
||||
- COMMUNICATION.md
|
||||
- CONTRIBUTING.md
|
||||
- README.md
|
||||
- SECURITY.md
|
||||
- webui/README.md
|
||||
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}
|
||||
@@ -68,14 +86,18 @@ jobs:
|
||||
os: ubuntu-latest
|
||||
python-version: "3.11"
|
||||
coverage: false
|
||||
pytest_args: ""
|
||||
- name: latest, 3.14 + coverage
|
||||
os: ubuntu-latest
|
||||
python-version: "3.14"
|
||||
coverage: true
|
||||
pytest_args: ""
|
||||
- name: Windows, 3.14
|
||||
os: windows-latest
|
||||
python-version: "3.14"
|
||||
coverage: false
|
||||
# Keep each test file in one worker while using both hosted-runner cores.
|
||||
pytest_args: "-n 2 --dist loadfile"
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -98,6 +120,9 @@ jobs:
|
||||
- name: Install channel dependencies
|
||||
run: uv run --no-sync python -m scripts.install_channel_dependencies --all-channels
|
||||
|
||||
- name: Verify dependency consistency
|
||||
run: uv pip check
|
||||
|
||||
# Channel requirements live in manifests rather than uv.lock. Avoid a
|
||||
# later uv run sync pruning the packages installed by the previous step.
|
||||
- name: Lint with ruff
|
||||
@@ -115,6 +140,7 @@ jobs:
|
||||
if: ${{ !matrix.coverage }}
|
||||
run: >-
|
||||
uv run --no-sync python -m pytest
|
||||
${{ matrix.pytest_args }}
|
||||
--durations=25 --durations-min=1.0
|
||||
|
||||
webui:
|
||||
|
||||
Reference in New Issue
Block a user