Skip to content

Commit

Permalink
doc(coverage): publish coverage as gh-pages
Browse files Browse the repository at this point in the history
  • Loading branch information
XavierBerger committed Sep 5, 2023
1 parent a88fa53 commit 4c81582
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/continuous_integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,19 @@ jobs:
cd appdaemon
coverage run --source apps -m pytest test
coverage report -m
coverage html
coverage-badge -o htmlcov/coverage.svg
pwd
ls htmlcov/
- name: Test with pytest
run: |
cd appdaemon/test
pytest -v
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: appdaemon/htmlcov

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
appdaemon/compiled/*
**/__pycache__/*
**/.coverage
1 change: 1 addition & 0 deletions appdaemon/test/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
appdaemon==4.4.2
coverage==7.2.7
coverage-badge==1.1.0
esphome==2023.8.0
pylint==2.17.5
pytest-random-order==1.1.0
Expand Down

0 comments on commit 4c81582

Please sign in to comment.