Skip to content

Commit

Permalink
use pytest-codeblocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nschloe committed May 8, 2021
1 parent 07a41e8 commit fb06d73
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,6 @@ jobs:
- name: Test with tox
run: |
pip install tox
tox
tox -- --cov perfplot --cov-report xml --cov-report term
- uses: codecov/codecov-action@v1
if: ${{ matrix.python-version == '3.9' }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ Clearly, `stack` and `vstack` are the best options for large arrays.
(By default, perfplot asserts the equality of the output of all snippets, too.)

If your plot takes a while to generate, you can also use
<!--exdown-skip-->
<!--pytest-codeblocks:skip-->
```python
perfplot.live(
# ...
Expand All @@ -69,7 +69,7 @@ with the same arguments as above. It will plot the updates live.

Benchmarking and plotting can be separated. This allows multiple plots of the same data,
for example:
<!--exdown-skip-->
<!--pytest-codeblocks:skip-->
```python
out = perfplot.bench(
# same arguments as above (except the plot-related ones, like time_unit or log*)
Expand Down
6 changes: 0 additions & 6 deletions tests/test_readme.py

This file was deleted.

4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ isolated_build = True

[testenv]
deps =
exdown
pytest
pytest-codeblocks
pytest-cov
commands =
pytest --cov {envsitepackagesdir}/perfplot --cov-report xml --cov-report term
pytest {posargs} --codeblocks

0 comments on commit fb06d73

Please sign in to comment.