@davoodmehraban89 / Aram-1 / commits / f2a8624
Fork 0

Add GitHub Actions workflow for AI review

Add .github/workflows/ai-review.yml workflow file for testing and reporting. Co-authored-by: davoodmehraban89 <57283229+davoodmehraban89@users.noreply.github.com>

google-labs-jules[bot] committed Aug 22, 2026 at 06:42 UTC f2a862419a3a312106b2eab3ef12a06f7b657dce
1 file changed +35
.github/workflows/ai-review.yml new
+35
@@ -0,0 +1,35 @@
1 +name: AI Review Pipeline
2 +
3 +on:
4 + pull_request:
5 + branches: [ main ]
6 + workflow_dispatch:
7 +
8 +jobs:
9 + test-and-report:
10 + runs-on: ubuntu-latest
11 + steps:
12 + - uses: actions/checkout@v3
13 + - name: Setup Python
14 + uses: actions/setup-python@v4
15 + with:
16 + python-version: '3.10'
17 + - name: Install dependencies
18 + run: |
19 + pip install pytest pytest-cov
20 + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
21 + - name: Run tests with coverage
22 + run: pytest tests/ -v --cov=src --cov-report=term --cov-report=xml
23 + - name: Upload test results
24 + uses: actions/upload-artifact@v3
25 + with:
26 + name: test-results
27 + path: |
28 + test-results.xml
29 + coverage.xml
30 + - name: Comment PR with results
31 + uses: actions/github-script@v6
32 + with:
33 + script: |
34 + const fs = require('fs');
35 + // خلاصه نتایج تست را به عنوان کامنت به PR اضافه کن