Skip to content

Commit 4ce612a

Browse files
authored
Test spyder kernels (#1080)
* test-spyder-kernels * cleanup
1 parent 1185d12 commit 4ce612a

File tree

2 files changed

+35
-4
lines changed

2 files changed

+35
-4
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
push:
55
branches: ["main"]
66
pull_request:
7+
schedule:
8+
- cron: "0 0 * * *"
79

810
concurrency:
911
group: ci-${{ github.ref }}

.github/workflows/downstream.yml

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,13 +90,11 @@ jobs:
9090
steps:
9191
- name: Checkout
9292
uses: actions/checkout@v3
93-
9493
- name: Setup Python
9594
uses: actions/setup-python@v4
9695
with:
9796
python-version: "3.9"
9897
architecture: "x64"
99-
10098
- name: Install System Packages
10199
run: |
102100
sudo apt-get update
@@ -109,16 +107,46 @@ jobs:
109107
cd qtconsole
110108
${pythonLocation}/bin/python -m pip install -e ".[test]"
111109
${pythonLocation}/bin/python -m pip install pyqt5
112-
- name: Install Jupyter-Client changes
110+
- name: Install Ipykernel changes
113111
shell: bash -l {0}
114112
run: ${pythonLocation}/bin/python -m pip install -e .
115-
116113
- name: Test qtconsole
117114
shell: bash -l {0}
118115
run: |
119116
cd ${GITHUB_WORKSPACE}/../qtconsole
120117
xvfb-run --auto-servernum ${pythonLocation}/bin/python -m pytest -x -vv -s --full-trace --color=yes qtconsole
121118
119+
spyder_kernels:
120+
runs-on: ubuntu-latest
121+
timeout-minutes: 20
122+
steps:
123+
- name: Checkout
124+
uses: actions/checkout@v3
125+
- name: Setup Python
126+
uses: actions/setup-python@v4
127+
with:
128+
python-version: "3.9"
129+
architecture: "x64"
130+
- name: Install System Packages
131+
run: |
132+
sudo apt-get update
133+
sudo apt-get install -y --no-install-recommends libegl1-mesa
134+
- name: Install spyder-kernels dependencies
135+
shell: bash -l {0}
136+
run: |
137+
cd ${GITHUB_WORKSPACE}/..
138+
git clone https://github.com/spyder-ide/spyder-kernels.git
139+
cd spyder-kernels
140+
${pythonLocation}/bin/python -m pip install -e ".[test]"
141+
- name: Install IPykernel changes
142+
shell: bash -l {0}
143+
run: ${pythonLocation}/bin/python -m pip install -e .
144+
- name: Test spyder-kernels
145+
shell: bash -l {0}
146+
run: |
147+
cd ${GITHUB_WORKSPACE}/../spyder-kernels
148+
xvfb-run --auto-servernum ${pythonLocation}/bin/python -m pytest -x -vv -s --full-trace --color=yes spyder_kernels
149+
122150
downstream_check: # This job does nothing and is only used for the branch protection
123151
if: always()
124152
needs:
@@ -127,6 +155,7 @@ jobs:
127155
- jupyter_client
128156
- ipyparallel
129157
- jupyter_kernel_test
158+
- spyder_kernels
130159
- qtconsole
131160
runs-on: ubuntu-latest
132161
steps:

0 commit comments

Comments
 (0)