-
Notifications
You must be signed in to change notification settings - Fork 2
86 lines (80 loc) · 2.72 KB
/
Copy pathci.yml
File metadata and controls
86 lines (80 loc) · 2.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: OpenCode Ecosystem Core CI
on:
push:
branches: [main, master, develop]
pull_request:
branches: [main, master]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PYTHONUNBUFFERED: "1"
FORCE_COLOR: "1"
jobs:
lint:
name: Static lint (R448 safety surface)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
cache: "pip"
- run: python -m pip install -r requirements-dev.txt
- name: Run pinned Ruff checks
run: |
python -m ruff check --output-format=github --select E4,E7,E9,F \
sdd/spec_engine.py \
sdd/tdd_runner.py \
integrations/deepmind/formal_verifier.py \
integrations/deepmind/formal_safety_predicates.py \
integrations/deepmind/alphaproof_engine.py \
marceloclaro/orchestrator.py \
mci/self_correction.py \
publishing/production.py \
tests/test_r448_hardening.py \
tests/test_r448_installer_security.py \
tests/test_r448_sdd_contracts.py \
tests/test_r448_documentation_reconciliation.py
- name: Check Bash installer syntax
run: |
bash -n installer/common/install_clis.sh
bash -n installer/linux/install.sh
bash -n installer/macos/install.sh
bash -n installer/windows/provision.sh
test:
name: Test (Python ${{ matrix.python-version }})
needs: lint
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- run: python -m pip install -r requirements-dev.txt
- run: python -m pytest tests/ -q --tb=short --timeout=120
name: Run full test suite
- run: python scripts/quality_report.py
name: Generate quality report
package:
name: Package Build
needs: test
runs-on: ubuntu-latest
strategy:
matrix:
package: [opencode-evosci, opencode-deep-research, opencode-peer-review]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: pip install -r requirements-dev.txt
- run: python -m build packages/${{ matrix.package }}
name: Build ${{ matrix.package }}
- run: python -c "import sys; sys.path.insert(0, 'packages/${{ matrix.package }}'); __import__('${{ matrix.package }}'.replace('-', '_'))"
name: Verify import