Skip to content

Commit 927cd82

Browse files
committed
Test Downstream Packages
1 parent abaa8cd commit 927cd82

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

.github/workflows/downstream.yml

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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.8
18+
uses: actions/setup-python@v2
19+
with:
20+
python-version: 3.8
21+
22+
- name: Install dependencies
23+
run: |
24+
pip install --upgrade pip
25+
pip install ".[test]"
26+
pip install --pre --upgrade jupyterlab_server[test] jupyterlab[test] nbclassic[test]
27+
pip freeze
28+
- name: Run tests
29+
run: |
30+
pytest --pyargs jupyterlab_server
31+
python -m jupyterlab.browser_check --no-browser-test
32+
33+
# Make sure we can start and kill the nbclassic server
34+
jupyter nbclassic --no-browser &
35+
TASK_PID=$!
36+
# Make sure the task is running
37+
ps -p $TASK_PID || exit 1
38+
sleep 5
39+
kill $TASK_PID
40+
wait $TASK_PID
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)