Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
python-version: [3.7, 3.8, 3.9, '3.10']

steps:
- name: Checkout
Expand All @@ -24,8 +24,9 @@ jobs:
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip doit
python3 -m pip install .
doit install_test_deps
python3 -m pip install .
python3 -m pip freeze # do make debugging easier for failures due to version changes

- name: Test with pytest
run: |
Expand Down
4 changes: 3 additions & 1 deletion dodo.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ def task_test():
}

def task_install_test_deps():
test_deps = ['matplotlib', 'sympy', 'pytest-cov', 'pytest-mock', 'nbdime']
# ipython_genutils is an indirect dependency of nbdime, but can be removed from this list
# once https://github.com/jupyter/nbdime/pull/618 ends up in a release
test_deps = ['matplotlib', 'sympy', 'pytest-cov', 'pytest-mock', 'nbdime', 'ipython_genutils']
return {
'actions': [_make_cmd(['pip', 'install'] + test_deps)],
}
Expand Down
2 changes: 1 addition & 1 deletion nbval/_version.py
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version_info = (0, 9, 6)
version_info = (0, 9, '7.dev')
__version__ = '.'.join(map(str, version_info[:3])) + ''.join(version_info[3:])
6 changes: 5 additions & 1 deletion tests/sanitize_defaults.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ replace: TIMESTAMP

[Memory addresses]
regex: (<[a-zA-Z_][0-9a-zA-Z_.]* at )(0x[0-9a-fA-F]+)(>)
replace: \1MEMORY_ADDRESS\3
replace: \1MEMORY_ADDRESS\3

[Matplotlib figure size]
regex: (Figure size )\d+x\d+( with \d+ Axes)
replace: \1WIDTHxHEIGHT\2