We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08145da commit fe79a29Copy full SHA for fe79a29
.github/workflows/ci.yml
@@ -44,6 +44,22 @@ jobs:
44
- name: Run tests with coverage
45
id: coverage
46
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
63
# カバレッジレポートを生成
64
python -m pytest tests/ -v --cov=src --cov-report=xml:coverage.xml --cov-report=term-missing --cov-report=html
65
0 commit comments