ReMe/.github/workflows/ci-python-tests.yml
jinliyl d019f784d7
Some checks are pending
CI / Python packages / Build and verify distributions (push) Waiting to run
CI / Python quality / GitHub Actions (push) Waiting to run
CI / Python quality / Pre-commit (push) Waiting to run
CI / Python tests / Hermes embedded - ubuntu-latest (push) Waiting to run
CI / Python tests / Hermes embedded - windows-latest (push) Waiting to run
CI / Python tests / Unit Tests - py3.11 (push) Waiting to run
CI / Python tests / Unit Tests - py3.12 (push) Waiting to run
CI / Python tests / Unit Tests - py3.13 (push) Waiting to run
CI / Python tests / Unit Tests - py3.14 (push) Waiting to run
CI / ReMe Studio / Studio checks (push) Waiting to run
CI / Windows / CLI smoke - py3.11 (push) Waiting to run
Deploy / Documentation / Build documentation (push) Waiting to run
Deploy / Documentation / deploy (push) Blocked by required conditions
Security / CodeQL / Analyze javascript-typescript (push) Waiting to run
Security / CodeQL / Analyze python (push) Waiting to run
refactor(docker): move deployment assets and keep benchmarks in HoMe (#777)
* refactor(docker): move deployment assets to their owners

* fix(home): build benchmark image with local Studio package

* fix(home): ship Docker assets and verify coordinated upgrades
2026-11-24 16:39:47 +08:00

106 lines
3.7 KiB
YAML

name: CI / Python tests
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
hermes-embedded:
name: Hermes embedded - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
defaults:
run:
shell: bash
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.11"
- name: Install minimal runtime with Hermes shared dependency pins
run: |
python -m pip install -e ".[hermes]" pytest pytest-asyncio "fastmcp==3.4.4" "mcp==1.28.1" \
-c tests/constraints/hermes-0.21.4.txt
python -m pip check
- name: Test embedded lifecycle and shared dependency compatibility
run: |
python -m pytest tests/unit/test_hermes_agent_integration.py \
tests/unit/test_application_config.py tests/unit/test_as_llm_lazy.py \
tests/unit/test_cron_delay.py tests/unit/test_package_versions.py \
tests/unit/test_mcp_client.py tests/unit/test_service.py -q
unit-tests:
name: Unit Tests - py${{ matrix.python-version }}
runs-on: ubuntu-latest
timeout-minutes: 90
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -e reme_studio/web/python -e ".[dev,core,decision,qwen-tokenizer]" -e plugins/home coverage
python reme_studio/client/scripts/client-contract.py --check
pip install --no-deps -e plugins/auto-fin
pip install -e plugins/daily_paper
pip install -e plugins/lme -e plugins/beam
- name: Smoke test HoMe in Docker
if: matrix.python-version == '3.11'
env:
REME_DOCKER_INTEGRATION: "1"
run: >-
python -m pytest -q
plugins/home/tests/benchmark_docker/test_integration.py::test_real_docker_source_pool_workspace_reuse
- name: Run unit tests
env:
FASTMCP_MCP_CAMELCASE_COMPAT: "false"
run: |
python -c "import tokenizers; print('tokenizers', tokenizers.__version__)"
# Plugin-installation tests execute and remove copies outside the checkout.
coverage run --include="$PWD/*" --omit='*/tests/*' \
-m pytest tests/unit plugins/auto-fin plugins/daily_paper plugins/lme plugins/beam plugins/home/tests \
-v \
--tb=long \
-s \
--log-cli-level=WARNING
- name: Generate coverage report
run: coverage report -m
- name: Verify minimum tokenizer version
if: matrix.python-version == '3.11'
run: |
python -m pip install "tokenizers==0.23.3"
python -c "import tokenizers; print('tokenizers', tokenizers.__version__)"
python -m pytest tests/unit/test_qwen_token_tools.py tests/unit/test_package_versions.py -q