Skip to content

Commit dfe5b84

Browse files
committed
Combine pytest into single command
1 parent bd12335 commit dfe5b84

File tree

2 files changed

+1
-19
lines changed

2 files changed

+1
-19
lines changed

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ jobs:
8181
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
8282
- name: Run tests
8383
run: |
84-
pytest -s --cov=pysrc
84+
pytest -s --nbval --cov=pysrc ./pytest/
8585
- name: Upload coverage to Codecov
8686
uses: codecov/codecov-action@v2
8787
env:

pytest/test_all.py

-18
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,3 @@ def test_issue_433():
7575
"""
7676
)
7777
assert out == 25
78-
79-
def test_notebook():
80-
import os
81-
import subprocess
82-
import sys
83-
from pathlib import Path
84-
85-
result = subprocess.run(
86-
[
87-
sys.executable,
88-
"-m",
89-
"pytest",
90-
"--nbval",
91-
str(Path(__file__).parent / "test_nb.ipynb"),
92-
],
93-
env=os.environ,
94-
)
95-
assert result.returncode == 0

0 commit comments

Comments
 (0)