Skip to content

Commit 3ada4e9

Browse files
Merge pull request #2 from jupyter/master
Mass Request
2 parents 5c1278c + fb443d3 commit 3ada4e9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+1164
-357
lines changed

.github/workflows/docs.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Docs Tests
2+
on:
3+
push:
4+
branches: '*'
5+
pull_request:
6+
branches: '*'
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu]
14+
python-version: [ '3.6' ]
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Install Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
architecture: 'x64'
23+
- name: Upgrade packaging dependencies
24+
run: |
25+
pip install --upgrade pip setuptools wheel
26+
- name: Get pip cache dir
27+
id: pip-cache
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
- name: Cache pip
31+
uses: actions/cache@v1
32+
with:
33+
path: ${{ steps.pip-cache.outputs.dir }}
34+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
35+
restore-keys: |
36+
${{ runner.os }}-pip-${{ matrix.python-version }}-
37+
${{ runner.os }}-pip-
38+
- name: Install the Python dependencies
39+
run: |
40+
pip install -e .[test] codecov
41+
pip install -r docs/doc-requirements.txt
42+
wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
43+
- name: List installed packages
44+
run: |
45+
pip freeze
46+
pip check
47+
- name: Run tests on documentation
48+
run: |
49+
EXIT_STATUS=0
50+
make -C docs/ html || EXIT_STATUS=$?
51+
pytest --nbval --current-env docs || EXIT_STATUS=$?
52+
exit $EXIT_STATUS

.github/workflows/js.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
name: Linux JS Tests
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
9+
jobs:
10+
build:
11+
runs-on: ${{ matrix.os }}-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
os: [ubuntu, macos]
16+
group: [notebook, base, services]
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v2
20+
- name: Set up Python
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: 3.8
24+
- name: Set up Node
25+
uses: actions/setup-node@v1
26+
with:
27+
node-version: '12.x'
28+
29+
- name: Cache node modules
30+
uses: actions/cache@v2
31+
env:
32+
cache-name: cache-node-modules
33+
with:
34+
# npm cache files are stored in `~/.npm` on Linux/macOS
35+
path: ~/.npm
36+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
37+
restore-keys: |
38+
${{ runner.os }}-build-${{ env.cache-name }}-
39+
${{ runner.os }}-build-
40+
${{ runner.os }}-
41+
42+
- name: Cache pip on Linux
43+
uses: actions/cache@v1
44+
if: startsWith(runner.os, 'Linux')
45+
with:
46+
path: ~/.cache/pip
47+
key: ${{ runner.os }}-pip-${{ matrix.python }}-${{ hashFiles('**/requirements.txt', 'setup.py') }}
48+
restore-keys: |
49+
${{ runner.os }}-pip-${{ matrix.python }}
50+
51+
- name: Install dependencies
52+
run: |
53+
pip install --upgrade pip
54+
pip install --upgrade setuptools wheel
55+
npm install
56+
57+
pip install .[test]
58+
59+
- name: Run Tests
60+
run: |
61+
python -m notebook.jstest ${{ matrix.group }}
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
# The NBConvert Service requires pandoc. Instead of testing
2+
# Pandoc on every operating system (which should already be
3+
# done in nbconvert directly), we'll only test these services
4+
# on ubuntu where we can easily load Pandoc from a Github
5+
# Actions docker image (this docker image is not on other
6+
# operating systems).
7+
name: NBConvert Service Tests
8+
on:
9+
push:
10+
branches: '*'
11+
pull_request:
12+
branches: '*'
13+
jobs:
14+
build:
15+
runs-on: ubuntu-latest
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
python-version: [ '3.6' , '3.7', '3.8', '3.9' ]
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v1
23+
- name: Install Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v1
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
architecture: 'x64'
28+
- name: Setup Pandoc
29+
uses: r-lib/actions/setup-pandoc@v1
30+
- name: Upgrade packaging dependencies
31+
run: |
32+
pip install --upgrade pip setuptools wheel
33+
- name: Get pip cache dir
34+
id: pip-cache
35+
run: |
36+
echo "::set-output name=dir::$(pip cache dir)"
37+
- name: Cache pip
38+
uses: actions/cache@v1
39+
with:
40+
path: ${{ steps.pip-cache.outputs.dir }}
41+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
42+
restore-keys: |
43+
${{ runner.os }}-pip-${{ matrix.python-version }}-
44+
${{ runner.os }}-pip-
45+
- name: Install the Python dependencies
46+
run: |
47+
pip install -e .[test]
48+
- name: Run NBConvert Tests
49+
run: |
50+
pytest notebook/nbconvert/tests/
51+
- name: Run NBConvert Service Tests
52+
run: |
53+
pytest notebook/services/nbconvert/tests/

.github/workflows/python.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Python Tests
2+
on:
3+
push:
4+
branches: '*'
5+
pull_request:
6+
branches: '*'
7+
jobs:
8+
build:
9+
runs-on: ${{ matrix.os }}-latest
10+
strategy:
11+
fail-fast: false
12+
matrix:
13+
os: [ubuntu, macos, windows]
14+
python-version: [ '3.6' , '3.7', '3.8', '3.9' ] # Windows 3.9 fails due to the pywinpty dependency not working (Issue #5967)
15+
steps:
16+
- name: Checkout
17+
uses: actions/checkout@v1
18+
- name: Install Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v1
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
architecture: 'x64'
23+
- name: Upgrade packaging dependencies
24+
run: |
25+
pip install --upgrade pip setuptools wheel --user
26+
- name: Get pip cache dir
27+
id: pip-cache
28+
run: |
29+
echo "::set-output name=dir::$(pip cache dir)"
30+
- name: Cache pip
31+
uses: actions/cache@v1
32+
with:
33+
path: ${{ steps.pip-cache.outputs.dir }}
34+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}
35+
restore-keys: |
36+
${{ runner.os }}-pip-${{ matrix.python-version }}-
37+
${{ runner.os }}-pip-
38+
- name: Install the Python dependencies
39+
run: |
40+
pip install -e .[test] codecov
41+
- name: List installed packages
42+
run: |
43+
pip freeze
44+
pip check
45+
- name: Run Server-side tests
46+
run: |
47+
pytest -vv --cov notebook --cov-branch --cov-report term-missing:skip-covered --ignore-glob=notebook/tests/selenium/* --ignore-glob=notebook/nbconvert/tests/* --ignore-glob=notebook/services/nbconvert/tests/*
48+
- name: Run Integration Tests
49+
run: |
50+
pytest -v notebook/tests/test_notebookapp_integration.py --integration_tests
51+
- name: Coverage
52+
run: |
53+
codecov

.github/workflows/selenium.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Selenium Tests
2+
3+
on:
4+
push:
5+
branches: '*'
6+
pull_request:
7+
branches: '*'
8+
jobs:
9+
build:
10+
runs-on: ${{ matrix.os }}-latest
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ubuntu, macos]
15+
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
16+
steps:
17+
- name: Checkout
18+
uses: actions/checkout@v2
19+
20+
- name: Set up Python
21+
uses: actions/setup-python@v1
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
architecture: 'x64'
25+
26+
- name: Set up Node
27+
uses: actions/setup-node@v1
28+
with:
29+
node-version: '12.x'
30+
31+
- name: Install JS
32+
run: |
33+
npm install
34+
35+
- name: Install Python dependencies
36+
run: |
37+
python -m pip install -U pip setuptools wheel
38+
pip install --upgrade selenium
39+
pip install pytest
40+
pip install .[test]
41+
42+
- name: Run Tests
43+
run: |
44+
export JUPYTER_TEST_BROWSER=firefox
45+
export MOZ_HEADLESS=1
46+
pytest -sv notebook/tests/selenium

.travis.yml

Lines changed: 0 additions & 106 deletions
This file was deleted.

0 commit comments

Comments
 (0)