Skip to content

Commit 9102593

Browse files
authored
Update python-test-workflow.yml
1 parent 9f39941 commit 9102593

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎.github/workflows/python-test-workflow.yml‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,18 @@ jobs:
2020
python -m pip install --upgrade pip
2121
pip install pytest
2222
23-
- name: Run tests
23+
- name: 🔍 テストファイルの一覧を表示
2424
run: |
25-
pytest
25+
ls -la ./test_*.py
26+
27+
- name: 🚀 テストの実行とレポート生成
28+
run: |
29+
# ファイル名を直接指定せず、pytestの自動検出に任せる形にしています
30+
pytest --junitxml='test-report.xml'
31+
32+
- name: 📤 テストレポートを成果物として保存
33+
if: always()
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: python-test-report
37+
path: test-report.xml

0 commit comments

Comments
 (0)