Skip to content

Commit fe79a29

Browse files
committed
[AI: Windsurf] fix: improve CI workflow with better debug info
1 parent 08145da commit fe79a29

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,22 @@ jobs:
4444
- name: Run tests with coverage
4545
id: coverage
4646
run: |
47+
# デバッグ情報を表示
48+
python --version
49+
pip list
50+
51+
# テスト環境変数を設定
52+
if [ "$RUNNER_OS" == "Linux" ] || [ "$RUNNER_OS" == "macOS" ]; then
53+
export TESTING=True
54+
export DATABASE_URL=sqlite+aiosqlite:///:memory:
55+
elif [ "$RUNNER_OS" == "Windows" ]; then
56+
echo "TESTING=True" >> $GITHUB_ENV
57+
echo "DATABASE_URL=sqlite+aiosqlite:///:memory:" >> $GITHUB_ENV
58+
fi
59+
60+
# まずテストのみを実行して詳細なエラー情報を取得
61+
python -m pytest tests/ -v
62+
4763
# カバレッジレポートを生成
4864
python -m pytest tests/ -v --cov=src --cov-report=xml:coverage.xml --cov-report=term-missing --cov-report=html
4965

0 commit comments

Comments
 (0)