Skip to content

Commit 3fc4bb0

Browse files
authored
Update ci.yaml
1 parent c6034fa commit 3fc4bb0

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@ on:
99
jobs:
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

0 commit comments

Comments
 (0)