Skip to content

Commit b95da33

Browse files
author
mbarber
committed
added cov to gh action
1 parent 999d9e3 commit b95da33

File tree

12 files changed

+602
-312
lines changed

12 files changed

+602
-312
lines changed

.github/workflows/s3.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,18 @@ jobs:
2222
with:
2323
python-version: '3.x'
2424

25-
- name: Install Sphinx
25+
- name: Install dependencies
2626
run: |
2727
python -m pip install --upgrade pip
28-
pip install sphinx recommonmark sphinx_markdown_tables sphinx_markdown_builder nbsphinx sphinx-rtd-theme pandas requests tqdm pydantic
28+
pip install sphinx recommonmark sphinx_markdown_tables sphinx_markdown_builder nbsphinx sphinx-rtd-theme pandas requests tqdm pydantic coverage coverage-badge
29+
30+
- name: Run tests and generate coverage badge
31+
run: |
32+
coverage run -m pytest ./tests/api/
33+
coverage html
34+
mv htmlcov apidocs/source/
35+
rm ./apidocs/source/coverage.svg
36+
coverage-badge -o apidocs/source/coverage.svg
2937
3038
- name: Build HTML with Sphinx
3139
run: |
4.36 KB
Binary file not shown.
4.36 KB
Binary file not shown.

0 commit comments

Comments
 (0)