Skip to content

Commit 99c5070

Browse files
tbitcsoz-agent
andcommitted
fix(ci): install specsmith in test jobs for test_governance.py
test_governance.py runs 'python -m specsmith ...' via subprocess. The regression-python (persistent) and python-tests (staging) jobs only installed the ismart-core package, not specsmith itself. Add: pip install 'git+https://github.com/layer1labs/specsmith.git@main' to both test jobs so governance CLI tests pass in CI. Also add SPECSMITH_NO_AUTO_UPDATE + SPECSMITH_PYPI_CHECKED env vars to pytest steps to prevent update prompts mid-run. Co-Authored-By: Oz <oz-agent@warp.dev>
1 parent 72274de commit 99c5070

2 files changed

Lines changed: 20 additions & 2 deletions

File tree

.github/workflows/persistent.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,25 @@ jobs:
127127
python-version: "3.12"
128128
cache: pip
129129

130-
- name: Install with dev dependencies
130+
- name: Install project with dev dependencies
131131
run: pip install -e ".[dev]"
132132

133+
- name: Install specsmith (required by test_governance.py)
134+
run: pip install "git+https://github.com/layer1labs/specsmith.git@main"
135+
env:
136+
SPECSMITH_NO_AUTO_UPDATE: "1"
137+
SPECSMITH_PYPI_CHECKED: "1"
138+
133139
- name: ruff lint
134140
run: ruff check src/ tests/
135141

136142
- name: ruff format check
137143
run: ruff format --check src/ tests/
138144

139145
- name: pytest with coverage
146+
env:
147+
SPECSMITH_NO_AUTO_UPDATE: "1"
148+
SPECSMITH_PYPI_CHECKED: "1"
140149
run: pytest tests/ -v --tb=short --cov=ismart_core --cov-report=term-missing
141150

142151
long-term-metrics:

.github/workflows/staging.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,16 @@ jobs:
3535
- name: Install Python package
3636
run: pip install -e ".[dev]"
3737

38-
- name: Run pytest (TEST-001..009)
38+
- name: Install specsmith (required by test_governance.py)
39+
run: pip install "git+https://github.com/layer1labs/specsmith.git@main"
40+
env:
41+
SPECSMITH_NO_AUTO_UPDATE: "1"
42+
SPECSMITH_PYPI_CHECKED: "1"
43+
44+
- name: Run pytest (TEST-001..110)
45+
env:
46+
SPECSMITH_NO_AUTO_UPDATE: "1"
47+
SPECSMITH_PYPI_CHECKED: "1"
3948
run: pytest tests/ -v --tb=short
4049

4150
# ── Rust firmware tests ────────────────────────────────────────────

0 commit comments

Comments
 (0)