Skip to content

Commit 0c0af5b

Browse files
committed
test downstream script
1 parent 490298e commit 0c0af5b

File tree

2 files changed

+9
-38
lines changed

2 files changed

+9
-38
lines changed

.github/workflows/downstream.yml

Lines changed: 7 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -19,39 +19,11 @@ jobs:
1919
with:
2020
python-version: 3.9
2121

22-
- name: Install dependencies
22+
- name: Test Package
2323
run: |
24-
pip install --upgrade pip
25-
pip install pyqt5 pytest
26-
pip install ipykernel[test]
27-
pip install --pre -U --upgrade-strategy=only-if-needed ipykernel
28-
pip install qtconsole[test]
29-
pip install --pre -U --upgrade-strategy=only-if-needed qtconsole
30-
pip install nbclient[test]
31-
pip install --pre -U --upgrade-strategy=only-if-needed nbclient
32-
pip install nbconvert[test]
33-
pip install --pre -U --upgrade-strategy=only-if-needed nbconvert
34-
pip install jupyter_server[test]
35-
pip install --pre -U --upgrade-strategy=only-if-needed jupyter_server
36-
pip install . --force-reinstall
37-
pip freeze
38-
python -c 'import jupyter_client; print("jupyter_client", jupyter_client.__version__)'
39-
40-
- name: Test ipykernel
41-
if: ${{ always() }}
42-
run: pytest --pyargs ipykernel
43-
- name: Test nbclient
44-
if: ${{ always() }}
45-
run: IPYKERNEL_CELL_NAME="<IPY-INPUT>" pytest --pyargs nbclient
46-
- name: Test nbconvert
47-
if: ${{ always() }}
48-
run: pytest --pyargs nbconvert
49-
#qtconsole tests disabled because of a core dump
50-
#- name: Test qtconsole
51-
# if: ${{ always() }}
52-
# run: pytest --pyargs qtconsole
53-
#jupyter_server tests disabled because pip package doesn't allow for testing
54-
#see https://github.com/jupyter-server/jupyter_server/issues/563
55-
#- name: Test jupyter_server
56-
# if: ${{ always() }}
57-
# run: pytest --pyargs jupyter_server
24+
python -m venv test
25+
./test/bin/python -m pip install ipykernel[test]
26+
./test/bin/python -m pip install --pre -U --upgrade-strategy=only-if-needed ipykernel
27+
./test/bin/python -m pip install . --force-reinstall
28+
./test/bin/pytest --pyargs ipykernel
29+
rm -rf ./test

.github/workflows/main.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
name: CI
22

33
on:
4-
push:
5-
pull_request:
6-
4+
push: ["foo"]
5+
pull_request: ["bar"]
76
jobs:
87
check_duplicate_runs:
98
name: Check for duplicate runs

0 commit comments

Comments
 (0)