Files
OpenOPC/.github/workflows/external-agent-smoke.yml
CatJuly 75954fac60 fix(ci): install dev extras so pytest is available in smoke workflow
The external-agent-smoke workflow ran `pip install -e .`, which only
installs runtime dependencies. pytest and pytest-timeout live in the
`dev` optional-dependency group in pyproject.toml, so the test step
failed immediately with `No module named pytest` on all three platforms
before running a single test.

Fix: `pip install -e ".[dev]"`

This bug went undetected because every previous PR triggered the workflow
in `action_required` state (fork PRs need maintainer approval to run);
the job never actually executed until now.
2026-08-05 18:05:24 +08:00

31 lines
743 B
YAML

name: external-agent-smoke
on:
pull_request:
workflow_dispatch:
jobs:
smoke:
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install package
run: python -m pip install -e ".[dev]"
- name: Run external-agent smoke checks
run: >
python -m pytest -q
tests/test_cli_app.py::CliInitProjectTests::test_external_agent_preflight_accepts_fake_agent_binaries
tests/test_external_agent_preflight.py