merge: bring CI fixes from main into freeze/v0.9.6/rc-2
This commit is contained in:
commit
d6b4d79cf9
2 changed files with 14 additions and 3 deletions
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
|
|
@ -22,13 +22,23 @@ jobs:
|
||||||
python-version: '3.12'
|
python-version: '3.12'
|
||||||
cache: pip
|
cache: pip
|
||||||
|
|
||||||
|
- name: Install system dependencies
|
||||||
|
run: sudo apt-get install -y libsqlcipher-dev
|
||||||
|
|
||||||
|
- name: Install circuitforge-core
|
||||||
|
run: pip install git+https://git.opensourcesolarpunk.com/Circuit-Forge/circuitforge-core.git@main
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: pip install -r requirements.txt
|
run: pip install -r requirements.txt ruff pytest
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: ruff check .
|
run: ruff check .
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
|
env:
|
||||||
|
STAGING_DB: /tmp/peregrine-ci.db
|
||||||
|
CLOUD_DATA_ROOT: /tmp/peregrine-ci-cloud
|
||||||
|
PEREGRINE_LOG_DIR: /tmp/peregrine-ci-logs
|
||||||
run: pytest tests/ -v --tb=short
|
run: pytest tests/ -v --tb=short
|
||||||
|
|
||||||
frontend:
|
frontend:
|
||||||
|
|
|
||||||
|
|
@ -6,8 +6,9 @@ exclude = ["app/"]
|
||||||
[tool.ruff.lint.per-file-ignores]
|
[tool.ruff.lint.per-file-ignores]
|
||||||
# dev-api.py / dev_api.py (symlink): E702 semicolons in compact Pydantic model
|
# dev-api.py / dev_api.py (symlink): E702 semicolons in compact Pydantic model
|
||||||
# definitions — intentional style for dense data models with many simple fields.
|
# definitions — intentional style for dense data models with many simple fields.
|
||||||
"dev-api.py" = ["E702"]
|
# E402: mid-file module-level imports are intentional in dev-api.py for test patchability.
|
||||||
"dev_api.py" = ["E702"]
|
"dev-api.py" = ["E702", "E402"]
|
||||||
|
"dev_api.py" = ["E702", "E402"]
|
||||||
|
|
||||||
# finetune_local.py: E402 ML libs (torch, datasets, trl) are imported after
|
# finetune_local.py: E402 ML libs (torch, datasets, trl) are imported after
|
||||||
# runtime CUDA / Unsloth availability checks — conditional import pattern.
|
# runtime CUDA / Unsloth availability checks — conditional import pattern.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue