Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up full install test #689

Merged
merged 16 commits into from
Feb 3, 2022
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