Skip to content

Commit

Permalink
Clean up full install test (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 committed Feb 3, 2022
1 parent 691d9f2 commit 3a5f4b1
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 8 deletions.
39 changes: 31 additions & 8 deletions .github/workflows/python-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,39 @@ jobs:
if: ${{ matrix.python-version != 'pypy-3.7' }}
run: |
codecov
- name: Test full install
run: |
python -m venv test_install
./test_install/bin/python -m pip install -U pip
./test_install/bin/python -m pip install ".[test]"
pushd test_install
./bin/pytest --pyargs jupyter_server --capture=no
popd
- name: Test the docs
run: |
cd docs
pip install -r doc-requirements.txt
make html SPHINXOPTS="-W"
make_sdist:
name: Make SDist
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Build SDist
run: |
pip install build
python -m build --sdist
- uses: actions/upload-artifact@v2
with:
name: "sdist"
path: dist/*.tar.gz

test_sdist:
runs-on: ubuntu-latest
needs: [make_sdist]
name: Install from SDist and Test
steps:
- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1
- name: Download sdist
uses: actions/download-artifact@v2
- name: Install From SDist
run: |
pip install --find-links=./sdist "jupyter_server[test]>=0.0.dev0"
- name: Run Test
run: pytest -vv --pyargs --timeout=300 --timeout_method=thread jupyter_server --capture=no
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ addopts = "--doctest-modules"
testpaths = [
"jupyter_server/"
]
timeout = 300
timeout_method = "thread"

[tool.jupyter-releaser]
skip = ["check-links"]
Expand Down

0 comments on commit 3a5f4b1

Please sign in to comment.