Skip to content

Commit 3a5f4b1

Browse files
authored
Clean up full install test (#689)
1 parent 691d9f2 commit 3a5f4b1

File tree

2 files changed

+33
-8
lines changed

2 files changed

+33
-8
lines changed

.github/workflows/python-linux.yml

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -66,16 +66,39 @@ jobs:
6666
if: ${{ matrix.python-version != 'pypy-3.7' }}
6767
run: |
6868
codecov
69-
- name: Test full install
70-
run: |
71-
python -m venv test_install
72-
./test_install/bin/python -m pip install -U pip
73-
./test_install/bin/python -m pip install ".[test]"
74-
pushd test_install
75-
./bin/pytest --pyargs jupyter_server --capture=no
76-
popd
7769
- name: Test the docs
7870
run: |
7971
cd docs
8072
pip install -r doc-requirements.txt
8173
make html SPHINXOPTS="-W"
74+
75+
make_sdist:
76+
name: Make SDist
77+
runs-on: ubuntu-latest
78+
steps:
79+
- uses: actions/checkout@v2
80+
- name: Base Setup
81+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
82+
- name: Build SDist
83+
run: |
84+
pip install build
85+
python -m build --sdist
86+
- uses: actions/upload-artifact@v2
87+
with:
88+
name: "sdist"
89+
path: dist/*.tar.gz
90+
91+
test_sdist:
92+
runs-on: ubuntu-latest
93+
needs: [make_sdist]
94+
name: Install from SDist and Test
95+
steps:
96+
- name: Base Setup
97+
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
98+
- name: Download sdist
99+
uses: actions/download-artifact@v2
100+
- name: Install From SDist
101+
run: |
102+
pip install --find-links=./sdist "jupyter_server[test]>=0.0.dev0"
103+
- name: Run Test
104+
run: pytest -vv --pyargs --timeout=300 --timeout_method=thread jupyter_server --capture=no

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ addopts = "--doctest-modules"
1313
testpaths = [
1414
"jupyter_server/"
1515
]
16+
timeout = 300
17+
timeout_method = "thread"
1618

1719
[tool.jupyter-releaser]
1820
skip = ["check-links"]

0 commit comments

Comments
 (0)