diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 306b608..5edc624 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -35,6 +35,16 @@ jobs: run: | pytest --junitxml=pytest.xml --cov-report term-missing --cov=src tests/ | tee pytest-coverage.txt + - name: Coverage Report + id: CoverageReport + if: success() # テスト成功時のみ実行 + run: | + python - < README.md echo "" >> README.md echo "![test](coverage.svg)" >> README.md