Skip to content

Commit 6a0e0f6

Browse files
tiborpilzTibor Pilz
authored and
Tibor Pilz
committed
ci: deploy coverage to gh pages
1 parent 626ab36 commit 6a0e0f6

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/test.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Test
2727
id: test
2828
run: |
29-
poetry run pytest --cov=commitomatic --cov-report=xml
29+
poetry run pytest --cov=commitomatic --cov-report=xml --cov-report=html
3030
curl https://deepsource.io/cli | sh
3131
./bin/deepsource report --analyzer test-coverage --key python --value-file $PWD/coverage.xml
3232
rate=$(grep -Pio 'line-rate="\K[^"]*' coverage.xml | head -n1)
@@ -39,6 +39,15 @@ jobs:
3939
DEEPSOURCE_DSN: ${{ secrets.DEEPSOURCE_DSN }}
4040
BADGE_PATH: test-coverage.svg
4141

42+
- name: Deploy Coverage Report to Pages
43+
if: success()
44+
uses: crazy-max/ghaction-github-pages@v2
45+
with:
46+
target_branch: gh-pages
47+
build_dir: htmlcov
48+
env:
49+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
50+
4251
- uses: actions/checkout@v3
4352
with:
4453
ref: badges

README.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[![DeepSource](https://deepsource.io/gh/tiborpilz/commitomatic.svg/?label=active+issues&show_trend=true&token=HXOj050y_0e28wz3hpVDSbg6)](https://deepsource.io/gh/tiborpilz/commitomatic/?ref=repository-badge)
22
[![DeepSource](https://deepsource.io/gh/tiborpilz/commitomatic.svg/?label=resolved+issues&show_trend=true&token=HXOj050y_0e28wz3hpVDSbg6)](https://deepsource.io/gh/tiborpilz/commitomatic/?ref=repository-badge)
3-
[!Coverage(https://raw.githubusercontent.com/tiborpilz/commitomatic/badges/test-coverage.svg)]
3+
[![Coverage](https://raw.githubusercontent.com/tiborpilz/commitomatic/badges/test-coverage.svg)]()
4+
45
# Commitomatic
56

67
Commitomatic is a command-line tool that uses the OpenAI GPT-Codex to generate commit messages based on a git diff.

0 commit comments

Comments
 (0)