@@ -2,54 +2,61 @@ name: Test downstream projects
22
33on :
44 push :
5+ branches : ["main"]
56 pull_request :
67
8+ concurrency :
9+ group : downstream-${{ github.ref }}
10+ cancel-in-progress : true
11+
712jobs :
8- tests :
13+ ipython :
914 runs-on : ubuntu-latest
10-
15+ timeout-minutes : 10
1116 steps :
12- - name : Checkout
13- uses : actions/checkout@v2
14-
15- - name : Set up Python 3.8
16- uses : actions/setup-python@v2
17+ - uses : actions/checkout@v2
18+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
19+ - uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
1720 with :
18- python-version : 3.8
19-
20- - name : Install dependencies
21- run : |
22- pip install --upgrade pip
23- pip install build
24- python -m build .
25- pip install dist/traitlets*.whl
26- pip install --pre --upgrade traitlets[test] pytest pytest-cov
27- pip install ipython[test] nbconvert[test] \
28- notebook>=7.0.0a5[test] ipywidgets[test]
29- pip freeze
30-
31- - name : Run tests IPython
32- run : |
33- cd $HOME
34- pytest -ra --cov traitlets --cov-report=xml:coverage-from-ipython.xml --pyargs IPython
21+ package_name : ipython
3522
36- - name : Run tests nbconvert
37- run : |
38- cd $HOME
39- pytest -ra --cov traitlets --cov-report=xml:coverage-from-nbconvert.xml \
40- --pyargs nbconvert -p no:unraisableexception -k 'not network'
23+ nbconvert :
24+ runs-on : ubuntu-latest
25+ timeout-minutes : 10
26+ steps :
27+ - uses : actions/checkout@v2
28+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
29+ - uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
30+ with :
31+ package_name : nbconvert
32+ package_spec : pip install -e ".[test]"
4133
42- - name : Run tests notebook
43- run : |
44- cd $HOME
45- pytest -ra --cov traitlets --cov-report=xml:coverage-from-notebook.xml \
46- --pyargs notebook
34+ jupyter_server :
35+ runs-on : ubuntu-latest
36+ timeout-minutes : 10
37+ steps :
38+ - uses : actions/checkout@v2
39+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
40+ - uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
41+ with :
42+ package_name : jupyter_server
4743
48- - name : Run tests ipywidgets
49- run : |
50- cd $HOME
51- pytest -ra --cov traitlets --cov-report=xml:coverage-from-ipywidgets.xml \
52- --pyargs ipywidgets
44+ ipywidgets :
45+ runs-on : ubuntu-latest
46+ timeout-minutes : 10
47+ steps :
48+ - uses : actions/checkout@v2
49+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
50+ - uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
51+ with :
52+ package_name : ipywidgets
5353
54- - name : Upload coverage to Codecov
55- uses : codecov/codecov-action@v2
54+ notebook :
55+ runs-on : ubuntu-latest
56+ timeout-minutes : 10
57+ steps :
58+ - uses : actions/checkout@v2
59+ - uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
60+ - uses : jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
61+ with :
62+ package_name : notebook>=7.0.0a5
0 commit comments