Skip to content

Commit 5f259fe

Browse files
authored
Merge pull request #456 from bollwyvl/add-pure-python-install-test
Add pip-only install/CLI smoke test
2 parents 228bdd0 + a0baf84 commit 5f259fe

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

.github/workflows/job.test.yml

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ env:
2020

2121
PYTHONUNBUFFERED: 1
2222
ATEST_RETRIES: 3
23+
PIP_DISABLE_PIP_VERSION_CHECK: 1
2324

2425
# TODO: replace once mambaforge "just works" with setup-miniconda
2526
MAMBAFORGE_URL: https://github.com/conda-forge/miniforge/releases/latest/download/Mambaforge
@@ -184,7 +185,7 @@ jobs:
184185
mkdir dist
185186
cp python_packages/*/dist/* packages/*/*.tgz dist/
186187
cd dist
187-
sha256sum * > SHA256SUMS
188+
sha256sum * | tee SHA256SUMS
188189
189190
- name: Publish builds
190191
uses: actions/upload-artifact@v2
@@ -321,3 +322,55 @@ jobs:
321322
name: ${{ job.status }} Robot ${{ matrix.os }} Python ${{ matrix.python }} ${{ github.run_number }}
322323
path: ./atest/output
323324
if: always()
325+
326+
smoke:
327+
name: smoke ${{ matrix.os }} py${{ matrix.python }}
328+
runs-on: ${{ matrix.os }}-latest
329+
needs: [build, lint]
330+
strategy:
331+
fail-fast: false
332+
matrix:
333+
os: [ubuntu, macos, windows]
334+
python: ['3.6', '3.9', 'pypy3']
335+
exclude:
336+
- os: windows
337+
python: pypy3
338+
include:
339+
- python: '3.6'
340+
dist: 'jupyter*lsp*.tar.gz'
341+
- python: 'pypy3'
342+
dist: 'jupyter*lsp*.tar.gz'
343+
- python: '3.9'
344+
dist: 'jupyter*lsp*.whl'
345+
- os: windows
346+
py_cmd: python
347+
- os: macos
348+
py_cmd: python3
349+
- os: ubuntu
350+
py_cmd: python
351+
steps:
352+
- name: Install Python
353+
uses: actions/setup-python@v2
354+
with:
355+
python-version: ${{ matrix.python }}
356+
architecture: 'x64'
357+
- uses: actions/download-artifact@v2
358+
with:
359+
name: jupyterlab-lsp dist ${{ github.run_number }}
360+
path: ./dist
361+
- name: Install the prerequisites
362+
run: ${{ matrix.py_cmd }} -m pip install pip wheel
363+
- name: Install the package
364+
run: cd dist && ${{ matrix.py_cmd }} -m pip install -vv ${{ matrix.dist }}
365+
- name: Validate environment
366+
run: |
367+
set -eux
368+
${{ matrix.py_cmd }} -m pip freeze
369+
${{ matrix.py_cmd }} -m pip check
370+
- name: Validate the install
371+
run: |
372+
set -eux
373+
jupyter labextension list
374+
jupyter server extension list
375+
jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" -
376+
jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -

0 commit comments

Comments
 (0)