Skip to content

Commit 8e4bef6

Browse files
committed
Test downstream projects
1 parent a6b6be8 commit 8e4bef6

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/downstream.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test downstream projects
2+
3+
on:
4+
push:
5+
branches: "*"
6+
pull_request:
7+
branches: "*"
8+
9+
jobs:
10+
tests:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Set up Python 3.9
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.9
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install --upgrade pip
25+
pip install .
26+
pip install pytest nbclient[test] ipyparallel[test]
27+
pip freeze
28+
29+
- name: Run tests
30+
run: |
31+
pytest --pyargs nbclient
32+
pytest --pyargs ipyparallel

ipykernel/comm/comm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def _publish_msg(self, msg_type, data=None, metadata=None, buffers=None, **keys)
6666
self.kernel.session.send(self.kernel.iopub_socket, msg_type,
6767
content,
6868
metadata=json_clean(metadata),
69-
parent=self.kernel._parent_header.get('shell', {}),
69+
parent=self.kernel._parent_header,
7070
ident=self.topic,
7171
buffers=buffers,
7272
)

0 commit comments

Comments
 (0)