Skip to content

Commit 47c5efb

Browse files
authored
Merge pull request #416 from afshin/tests-distribution
Add Tests to Distribution
2 parents fbe02ae + 5ba9f26 commit 47c5efb

Some content is hidden

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

66 files changed

+64
-37
lines changed

.github/workflows/python-linux.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,26 @@ jobs:
4343
pip freeze
4444
pip check
4545
- name: Run the tests
46+
if: ${{ matrix.python-version != 'pypy3' }}
4647
run: |
4748
pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered
49+
- name: Run the tests on pypy
50+
if: ${{ matrix.python-version == 'pypy3' }}
51+
run: |
52+
pytest -vv
4853
- name: Install the Python dependencies for the examples
4954
run: |
5055
cd examples/simple && pip install -e .
5156
- name: Run the tests for the examples
5257
run: |
5358
pytest examples/simple/tests/test_handlers.py
5459
- name: Coverage
60+
if: ${{ matrix.python-version != 'pypy3' }}
5561
run: |
5662
codecov
63+
- name: Test full install
64+
run: |
65+
pip uninstall -y jupyter_server
66+
pip install .
67+
cd /tmp
68+
pytest --pyargs jupyter_server

.github/workflows/python-macos.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,20 @@ jobs:
4343
pip freeze
4444
pip check
4545
- name: Run the tests
46+
if: ${{ matrix.python-version != 'pypy3' }}
4647
run: |
4748
pytest -vv --cov jupyter_server --cov-branch --cov-report term-missing:skip-covered
49+
- name: Run the tests on pypy
50+
if: ${{ matrix.python-version == 'pypy3' }}
51+
run: |
52+
pytest -vv
4853
- name: Install the Python dependencies for the examples
4954
run: |
5055
cd examples/simple && pip install -e .
5156
- name: Run the tests for the examples
5257
run: |
5358
pytest examples/simple/tests/test_handlers.py
5459
- name: Coverage
60+
if: ${{ matrix.python-version != 'pypy3' }}
5561
run: |
5662
codecov

.github/workflows/python-windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
${{ runner.os }}-pip-
3838
- name: Install the Python dependencies
3939
run: |
40-
pip install -e .[test] codecov
40+
pip install -e .[test]
4141
- name: List installed packages
4242
run: |
4343
pip freeze

README.md

Lines changed: 8 additions & 1 deletion
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)