forked from ipython/ipykernel
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (44 loc) · 1.49 KB
/
downstream.yml
File metadata and controls
50 lines (44 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Test downstream projects
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: |
pip install --upgrade pip
pip install pytest pytest-asyncio pytest-tornado
pip install nbclient[test]
pip install --pre -U --upgrade-strategy=only-if-needed nbclient
pip install ipyparallel[test]
pip install --pre -U --upgrade-strategy=only-if-needed ipyparallel
pip install jupyter_client[test]
pip install --pre -U --upgrade-strategy=only-if-needed jupyter_client
pip install . --force-reinstall
pip freeze
python -c 'import ipykernel; print("ipykernel", ipykernel.__version__)'
- name: Test nbclient
if: ${{ always() }}
run: IPYKERNEL_CELL_NAME="<IPY-INPUT>" pytest --pyargs nbclient
- name: Test ipyparallel
if: ${{ always() }}
run: pytest --pyargs ipyparallel
- name: Test jupyter_client
if: ${{ always() }}
run: pytest --pyargs jupyter_client
- name: Test jupyter_kernel_test
run: |
git clone https://github.com/jupyter/jupyter_kernel_test.git
cd jupyter_kernel_test
pip install -e ".[test]"
python test_ipykernel.py