Skip to content

Commit

Permalink
Include demo tests in test report
Browse files Browse the repository at this point in the history
  • Loading branch information
slaclau committed Jul 17, 2024
1 parent 87ef0a1 commit c292680
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,20 @@ jobs:
run: |
pip install wheel
pip install -e .[dev]
- name: Demo
- name: Coverage
run: |
pytest test/demo
pytest -rP --cov-report html:pytest/coverage --cov=src --ignore=test/demo test
- name: Test
run: |
pytest -rP --cov-report html:pytest/coverage --cov=src test --html=pytest/report.html --ignore=test/demo
pytest -rP --html=pytest/report.html test
- name: Upload demo artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: demo
path: test/demo/broadway/results
- name: Upload report artifact
if: always()
uses: actions/upload-artifact@v4
with:
name: report
Expand Down
3 changes: 2 additions & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ build:
- git fetch --unshallow || true
- git fetch --all --tags || true
pre_build:
- pytest -rP --cov-report html:pytest/coverage --cov=src test --html=pytest/report.html --ignore=test/demo
- pytest --cov-report html:pytest/coverage --cov=src --ignore=test/demo test
- pytest -rP --html=pytest/report.html test
- mkdir sphinx/source/prebuilt
- cp -r pytest/* sphinx/source/prebuilt

Expand Down

0 comments on commit c292680

Please sign in to comment.