Skip to content

Commit

Permalink
add badge
Browse files Browse the repository at this point in the history
  • Loading branch information
reschandreas committed Mar 15, 2024
1 parent acd71f8 commit 5d96a78
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 9 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ on:
- develop
paths:
- 'docs/**'
- '**.py'
- '.github/workflows/docs.yaml'

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
Expand All @@ -27,6 +28,18 @@ jobs:
with:
docs-folder: "docs/"
build-command: make html dirhtml
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.11
- name: Install Python dependencies
run: pip install -qr cli/requirements.txt
- name: Generate coverage report
run: |
cd cli
coverage run -m unittest discover
coverage-badge -o coverage.svg
mv coverage.svg ../docs/_build/dirhtml/_images/
- uses: actions/upload-artifact@v3
with:
name: Documentation
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/python-unit-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,4 @@ jobs:
echo "Coverage is less than 65%"
exit 1
fi
# Add this
- name: Update Coverage Badge
# GitHub actions: default branch variable
# https://stackoverflow.com/questions/64781462/github-actions-default-branch-variable
if: github.ref == format('refs/heads/{0}', github.event.repository.default_branch)
uses: we-cli/coverage-badge-action@main
6 changes: 3 additions & 3 deletions playground/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5d96a78

Please sign in to comment.