Skip to content

Commit

Permalink
docs: Add test coverage information to documentation subfolder
Browse files Browse the repository at this point in the history
  • Loading branch information
b1rger committed Jun 4, 2024
1 parent 6c3ff23 commit f6767d4
Show file tree
Hide file tree
Showing 5 changed files with 76 additions and 16 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,13 @@ jobs:
- name: Install documentation dependencies
run: |
pip install poetry
poetry install --with docs
poetry install --with docs --with tests
- name: Build docs
run: poetry run make -C "$GITHUB_WORKSPACE/docs" html
- name: Build coverage
run: |
poetry run coverage run --source="." manage.py test
poetry run coverage html
- uses: actions/checkout@v3
with:
path: apis-core-rdf-pages
Expand All @@ -37,6 +41,8 @@ jobs:
cd apis-core-rdf-pages
git rm -rf *
cp -r $GITHUB_WORKSPACE/docs/_build/html/* .
cp -r $GITHUB_WORKSPACE/htmlcov .
rm -f htmlcov/.gitignore
touch .nojekyll
git config user.name github-actions
git config user.email github-actions@github.com
Expand Down
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,4 @@ dist
build
apis_core.egg-info



.coverage
1 change: 1 addition & 0 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Welcome to APIS's documentation!

genindex
modindex
Coverage <https://acdh-oeaw.github.io/apis-core-rdf/htmlcov/>


Indices and tables
Expand Down
79 changes: 66 additions & 13 deletions poetry.lock

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

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ sphinx-rtd-theme = "*"
optional = true
[tool.poetry.group.tests.dependencies]
faker = "*"
coverage = "^7.5.3"

[tool.poetry.group.dev]
optional = true
Expand Down

0 comments on commit f6767d4

Please sign in to comment.