Skip to content

Commit 29db7f9

Browse files
committed
Follow up to fix CI
1 parent f815210 commit 29db7f9

File tree

3 files changed

+111
-5
lines changed

3 files changed

+111
-5
lines changed

.github/workflows/main.yml renamed to .github/workflows/python-linux.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Jupyter Server Tests
1+
name: Jupyter Server Tests [Linux]
22
on:
33
push:
44
branches: '*'
@@ -10,11 +10,8 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
os: [ubuntu, macos, windows]
13+
os: [ubuntu]
1414
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
15-
exclude:
16-
- os: windows
17-
python-version: pypy3
1815
steps:
1916
- name: Checkout
2017
uses: actions/checkout@v1

.github/workflows/python-macos.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
name: Jupyter Server Tests [Mac OS]
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: [macos]
14+
python-version: [ '3.6', '3.7', '3.8', '3.9', 'pypy3' ]
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 the tests
46+
run: |
47+
pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered
48+
- name: Install the Python dependencies for the examples
49+
run: |
50+
cd examples/simple && pip install -e .
51+
- name: Run the tests for the examples
52+
run: |
53+
pytest examples/simple/tests/test_handlers.py
54+
- name: Coverage
55+
run: |
56+
codecov

.github/workflows/python-windows.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: Jupyter Server Tests [Windows]
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: [windows]
14+
python-version: [ '3.6', '3.7', '3.8', '3.9' ]
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 the tests
46+
run: |
47+
pytest -vv
48+
- name: Install the Python dependencies for the examples
49+
run: |
50+
cd examples/simple && pip install -e .
51+
- name: Run the tests for the examples
52+
run: |
53+
pytest examples/simple/tests/test_handlers.py

0 commit comments

Comments
 (0)