Skip to content

Commit 65acdc0

Browse files
authored
Merge pull request #767 from blink1073/fix-pypy-test
2 parents 507ffdb + bb34c75 commit 65acdc0

1 file changed

Lines changed: 50 additions & 42 deletions

File tree

.github/workflows/downstream.yml

Lines changed: 50 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,54 +2,62 @@ name: Test downstream projects
22

33
on:
44
push:
5+
branches: ["main"]
56
pull_request:
67

8+
concurrency:
9+
group: downstream-${{ github.ref }}
10+
cancel-in-progress: true
11+
712
jobs:
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[test] ipywidgets[test]
29-
pip freeze
21+
package_name: ipython
22+
package_spec: pip install -e ".[test]"
3023

31-
- name: Run tests IPython
32-
run: |
33-
cd $HOME
34-
pytest -ra --cov traitlets --cov-report=xml:coverage-from-ipython.xml --pyargs IPython
35-
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'
41-
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 -k 'not selenium and not integration_tests'
24+
nbconvert:
25+
runs-on: ubuntu-latest
26+
timeout-minutes: 10
27+
steps:
28+
- uses: actions/checkout@v2
29+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
30+
- uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
31+
with:
32+
package_name: nbconvert
33+
package_spec: pip install -e ".[test]"
4734

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
35+
jupyter_server:
36+
runs-on: ubuntu-latest
37+
timeout-minutes: 10
38+
steps:
39+
- uses: actions/checkout@v2
40+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
41+
- uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
42+
with:
43+
package_name: jupyter_server
5344

54-
- name: Upload coverage to Codecov
55-
uses: codecov/codecov-action@v2
45+
ipywidgets:
46+
runs-on: ubuntu-latest
47+
timeout-minutes: 10
48+
steps:
49+
- uses: actions/checkout@v2
50+
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
51+
- uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
52+
with:
53+
package_name: ipywidgets
54+
# TODO: reinstate when notebook 7 is released.
55+
# notebook:
56+
# runs-on: ubuntu-latest
57+
# timeout-minutes: 10
58+
# steps:
59+
# - uses: actions/checkout@v2
60+
# - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
61+
# - uses: jupyterlab/maintainer-tools/.github/actions/downstream-test@v1
62+
# with:
63+
# package_name: notebook

0 commit comments

Comments
 (0)