From 84b107cf6ca1d56404a3b4b237442ce2670d0f04 Mon Sep 17 00:00:00 2001 From: Xubin Ren Date: Fri, 13 Mar 2026 04:05:08 +0000 Subject: [PATCH] fix(ci): upgrade setup-python, add system deps, simplify test assertions --- .github/workflows/ci.yml | 17 +++++++++-------- tests/test_commands.py | 8 ++++---- 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 98ec385..f55865f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,22 +11,23 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.11, 3.12, 3.13] - continue-on-error: true + python-version: ["3.11", "3.12", "3.13"] steps: - uses: actions/checkout@v4 - + - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - + + - name: Install system dependencies + run: sudo apt-get update && sudo apt-get install -y libolm-dev build-essential + - name: Install dependencies run: | python -m pip install --upgrade pip pip install .[dev] - + - name: Run tests - run: | - python -m pytest tests/ -v \ No newline at end of file + run: python -m pytest tests/ -v diff --git a/tests/test_commands.py b/tests/test_commands.py index 8ccbe47..cb77bde 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -236,10 +236,10 @@ def test_agent_help_shows_workspace_and_config_options(): assert result.exit_code == 0 stripped_output = _strip_ansi(result.stdout) - assert re.search(r'-{1,2}workspace', stripped_output) - assert re.search(r'-w', stripped_output) - assert re.search(r'-{1,2}config', stripped_output) - assert re.search(r'-c', stripped_output) + assert "--workspace" in stripped_output + assert "-w" in stripped_output + assert "--config" in stripped_output + assert "-c" in stripped_output def test_agent_uses_default_config_when_no_workspace_or_config_flags(mock_agent_runtime):