SouravNath commited on
Commit
83e5add
·
1 Parent(s): bd7df56

ci: add GitHub Actions workflow (244 tests) + CI/status badges in README

Browse files
Files changed (2) hide show
  1. .github/workflows/ci.yml +58 -0
  2. README.md +7 -0
.github/workflows/ci.yml ADDED
@@ -0,0 +1,58 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ branches: [ main, master ]
6
+ pull_request:
7
+ branches: [ main, master ]
8
+
9
+ jobs:
10
+ test:
11
+ name: Run Test Suite (244 tests)
12
+ runs-on: ubuntu-latest
13
+
14
+ steps:
15
+ - name: Checkout repository
16
+ uses: actions/checkout@v4
17
+
18
+ - name: Set up Python 3.12
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.12"
22
+
23
+ - name: Cache pip dependencies
24
+ uses: actions/cache@v4
25
+ with:
26
+ path: ~/.cache/pip
27
+ key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
28
+ restore-keys: |
29
+ ${{ runner.os }}-pip-
30
+
31
+ - name: Install dependencies
32
+ run: |
33
+ python -m pip install --upgrade pip
34
+ pip install -r requirements.txt
35
+
36
+ - name: Validate dataset config (no GPU needed)
37
+ run: python -m fine_tuning.train --dry-run
38
+ continue-on-error: true # dry-run may skip if dataset not built yet
39
+
40
+ - name: Run full test suite
41
+ run: |
42
+ pytest tests/ -q \
43
+ --tb=short \
44
+ --no-header \
45
+ -p no:warnings
46
+ env:
47
+ # Dummy keys so settings validation passes in CI
48
+ GROQ_API_KEY: ci-dummy-key
49
+ LLM_PROVIDER: groq
50
+ LLM_MODEL: llama-3.3-70b-versatile
51
+
52
+ - name: Upload coverage report
53
+ if: always()
54
+ uses: actions/upload-artifact@v4
55
+ with:
56
+ name: test-results
57
+ path: .pytest_cache/
58
+ retention-days: 7
README.md CHANGED
@@ -9,6 +9,13 @@ pinned: false
9
 
10
  # 🤖 Autonomous Code Review & Bug-Fix Agent
11
 
 
 
 
 
 
 
 
12
 
13
  > **ML Engineering Project** — LLM Agents · SWE-bench · DeepSeek-Coder · AST Parsing · Conformal Prediction · RL Fine-Tuning
14
 
 
9
 
10
  # 🤖 Autonomous Code Review & Bug-Fix Agent
11
 
12
+ [![CI](https://github.com/Sourav-Nath-01/repomind/actions/workflows/ci.yml/badge.svg)](https://github.com/Sourav-Nath-01/repomind/actions/workflows/ci.yml)
13
+ [![Tests](https://img.shields.io/badge/tests-244%20passed-brightgreen)](https://github.com/Sourav-Nath-01/repomind/actions)
14
+ [![Python](https://img.shields.io/badge/python-3.12-blue)](https://www.python.org/)
15
+ [![HuggingFace](https://img.shields.io/badge/🤗%20API-Live-orange)](https://souravnath-repomind-api.hf.space)
16
+ [![Demo](https://img.shields.io/badge/Demo-Live-blueviolet)](https://repomind-taupe.vercel.app)
17
+
18
+
19
 
20
  > **ML Engineering Project** — LLM Agents · SWE-bench · DeepSeek-Coder · AST Parsing · Conformal Prediction · RL Fine-Tuning
21