forked from jerry609/PaperBot
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (68 loc) · 2.53 KB
/
ci.yml
File metadata and controls
76 lines (68 loc) · 2.53 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
name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('requirements-ci.txt') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
- name: Install deps (CI minimal)
run: |
python -m pip install -U pip
python -m pip install -r requirements-ci.txt
- name: Run offline UT/IT/E2E gates
env:
PYTHONPATH: src
PAPERBOT_DB_URL: sqlite:///data/paperbot-ci.db
run: |
python -m pytest -q \
tests/unit/test_scholar_from_config.py \
tests/unit/test_source_registry_modes.py \
tests/unit/test_arq_worker_settings.py \
tests/unit/test_jobs_routes_import.py \
tests/unit/test_dailypaper.py \
tests/unit/test_paper_judge.py \
tests/unit/test_memory_module.py \
tests/unit/test_memory_metric_collector.py \
tests/unit/test_llm_service.py \
tests/unit/test_di_container.py \
tests/unit/test_pipeline.py \
tests/integration/test_eventlog_sqlalchemy.py \
tests/integration/test_crawler_contract_parsers.py \
tests/integration/test_arxiv_connector_fixture.py \
tests/integration/test_reddit_connector_fixture.py \
tests/integration/test_x_importer_fixture.py \
tests/e2e/test_api_track_fullstack_offline.py
- name: Run eval smokes
env:
PYTHONPATH: src
run: |
python evals/runners/run_scholar_pipeline_smoke.py
python evals/runners/run_track_pipeline_smoke.py
python evals/runners/run_eventlog_replay_smoke.py
python evals/runners/run_retrieval_benchmark_smoke.py
- name: Run memory range and acceptance testing
env:
PYTHONPATH: src
run: |
python evals/memory/test_deletion_compliance.py
python evals/memory/test_retrieval_hit_rate.py
python evals/memory/test_scope_isolation.py
python evals/memory/test_injection_robustness.py