Skip to content

Commit

Permalink
Moving code report generation to be done at documentation deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
thijssnelleman committed Sep 27, 2024
1 parent e9c83f9 commit b6a9ae7
Show file tree
Hide file tree
Showing 89 changed files with 19 additions and 26,478 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/badgegenerator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ jobs:
conda env update --file dev-env.yml --name base
pip install genbadge[tests,coverage]
- name: Run Code Coverage report
run: pytest --all --cov sparkle/ --cov-report=xml:.reports/coverage/coverage.xml --cov-report=html:Documentation/source/_static/coverage
run: pytest --all --cov sparkle/ --cov-report=xml:.reports/coverage/coverage.xml
- name: Run badge generator coverage
run: genbadge coverage -i .reports/coverage/coverage.xml -o .reports/coverage/coverage-badge.svg
- name: Run tests report
run: pytest --all --junitxml=.reports/junit/junit.xml --html=.reports/junit/junit.html
run: pytest --all --junitxml=.reports/junit/junit.xml
- name: Create tests badge
run: genbadge tests -i .reports/junit/junit.xml -o .reports/junit/junit-badge.svg
- name: Commit to branch
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ jobs:
conda install -y python=3.9 # https://github.com/conda/conda/issues/13560#issuecomment-1992720842
conda env update --file dev-env.yml --name base
pip install sphinx sphinx_rtd_theme myst_parser sphinxcontrib-autoprogram
- name: Compile code reports
run: pytest --all --cov sparkle/ --cov-report=html:Documentation/source/_static/coverage
pytest --all --html=Documentation/source/_static/junit/index.html
- name: Build Documentation
run: |
cd Documentation
Expand Down
1,123 changes: 0 additions & 1,123 deletions Documentation/source/_static/coverage/class_index.html

This file was deleted.

Loading

0 comments on commit b6a9ae7

Please sign in to comment.