File tree Expand file tree Collapse file tree 1 file changed +8
-10
lines changed
Expand file tree Collapse file tree 1 file changed +8
-10
lines changed Original file line number Diff line number Diff line change 99jobs :
1010 build :
1111 runs-on : ubuntu-latest
12- env :
13- PYTHONPATH : .
1412
1513 steps :
1614 - name : Checkout code
@@ -27,22 +25,22 @@ jobs:
2725 pip install -r requirements.txt
2826 pip install pytest pytest-cov ruff
2927
30- - name : Debug PYTHONPATH
31- run : |
32- echo "PYTHONPATH=$PYTHONPATH"
33- ls -la app/
34- python3 -c "import app.utils.logger; print('Logger imported successfully')"
35-
36- - name : Auto-fix lint issues
28+ - name : Auto-fix lint issues (ruff)
3729 run : |
38- ruff check . --fix
30+ ruff check . --fix || echo "Lint auto-fixed"
3931
4032 - name : Run Linting (ruff)
4133 run : |
4234 ruff check .
4335
36+ - name : Debug PYTHONPATH
37+ run : |
38+ echo "PYTHONPATH=$PYTHONPATH"
39+ ls -la /home/runner/work/second-brain/second-brain/app
40+
4441 - name : Run Tests with Coverage
4542 run : |
43+ export PYTHONPATH=./app
4644 pytest --cov=app tests/
4745
4846 - name : Upload Coverage Report
You can’t perform that action at this time.
0 commit comments