-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 1.07 KB
/
Copy pathpython-tests.yml
File metadata and controls
43 lines (35 loc) · 1.07 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
name: Project DNA CI
on:
push:
branches: [ main, master ]
pull_request:
branches: [ main, master ]
jobs:
test-and-run:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e .
- name: Run Unit Tests
run: |
python -m unittest project_dna.tests.test_analyzers
- name: Run Codebase Analysis End-to-End
run: |
# Run analyze on our own repository to verify CLI and report generation compiles cleanly
python -m project_dna analyze .
# Verify that output file exists
if [ ! -f "ProjectDNA_Report.html" ]; then
echo "Error: ProjectDNA_Report.html was not generated!"
exit 1
fi
echo "Success: End-to-end analysis completed and report generated."