From 1d39d9a0eb94239f0109cc3aef4225e620c03384 Mon Sep 17 00:00:00 2001 From: krassowski Date: Tue, 16 Feb 2021 17:54:24 +0000 Subject: [PATCH] Add a job to verify source install [skip atest] --- .github/workflows/job.test.yml | 42 ++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/job.test.yml b/.github/workflows/job.test.yml index f04e74e97..75dbbe766 100644 --- a/.github/workflows/job.test.yml +++ b/.github/workflows/job.test.yml @@ -389,3 +389,45 @@ jobs: jupyter server extension list jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" - jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" - + + source: + name: smoke source install ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest + needs: [build, lint] + strategy: + fail-fast: false + matrix: + os: [ubuntu] + python: ['3.6'] + nodejs: ['14'] + lab: ['>=3.0.0,<4.0.0a0'] + steps: + - name: Install Python + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + architecture: 'x64' + - name: Setup Node + uses: actions/setup-node@v2 + with: + node-version: ${{matrix.nodejs}} + - uses: actions/download-artifact@v2 + with: + name: jupyterlab-lsp dist ${{ github.run_number }} + path: ./dist + - name: Install the prerequisites + run: python -m pip install pip wheel + - name: Install JupyterLab + shell: bash -l {0} + run: python -m pip install 'jupyterlab${{ matrix.lab }}' + - name: Install the server package + run: cd dist && python -m pip install -vv jupyter_lsp*.whl + - name: install the source extension + run: cd dist && jupyter labextension install krassowski-jupyterlab-lsp-*.tgz + - name: Validate the install + run: | + set -eux + jupyter labextension list + jupyter server extension list + jupyter labextension list 2>&1 | grep -ie "jupyterlab-lsp.*enabled.*ok" - + jupyter server extension list 2>&1 | grep -ie "jupyter_lsp.*enabled" -