diff --git a/.github/workflows/job.lint.yml b/.github/workflows/job.lint.yml index ed86e34fb..a3b028274 100644 --- a/.github/workflows/job.lint.yml +++ b/.github/workflows/job.lint.yml @@ -33,10 +33,9 @@ jobs: nodejs: '${{ matrix.nodejs }}' - name: Set up Python and conda - uses: goanpeca/setup-miniconda@v1 + uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ matrix.python }} - channels: conda-forge, defaults channel-priority: true activate-environment: jupyterlab-lsp environment-file: requirements/github-actions.yml diff --git a/.github/workflows/job.test.yml b/.github/workflows/job.test.yml index 30a21df67..7a8a9c7b5 100644 --- a/.github/workflows/job.test.yml +++ b/.github/workflows/job.test.yml @@ -29,14 +29,14 @@ env: jobs: acceptance: - runs-on: ${{ matrix.os }} - name: ${{ matrix.os }}, Python ${{ matrix.python }}, Node ${{ matrix.nodejs }} + runs-on: ${{ matrix.os }}-latest + name: ${{ matrix.os }} py${{ matrix.python }} node${{ matrix.nodejs }} strategy: # TODO: maybe turn back on fail-fast: false matrix: + os: [ubuntu, macos, windows] python: [3.6, 3.7, 3.8] - os: [ubuntu-16.04, macos-10.14, vs2017-win2016] lab: ['>=2.2.0,<3.0.0a0'] include: # if using 3.6, use an old node @@ -74,10 +74,9 @@ jobs: key: ${{ matrix.os }}-${{ matrix.python }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('requirements/github-actions.yml') }} - name: Set up Python and conda - uses: goanpeca/setup-miniconda@v1 + uses: conda-incubator/setup-miniconda@v2 with: python-version: ${{ matrix.python }} - channels: conda-forge, defaults channel-priority: true auto-activate-base: true activate-environment: jupyterlab-lsp @@ -119,12 +118,13 @@ jobs: run: cd dist && python -m pip install jupyter_lsp-${{ env.PY_JLSP_VERSION }}-py3-none-any.whl --no-deps - name: Find out jedi cache location - run: python -c 'import jedi; print("::set-env name=JEDI_CACHE_DIR::" + jedi.settings.cache_directory)' + id: jedi-cache + run: python -c 'import jedi; print("::set-output name=dir::" + jedi.settings.cache_directory)' - name: Cache jedi cache uses: actions/cache@v1 with: - path: ${{ env.JEDI_CACHE_DIR }} + path: ${{ steps.jedi-cache.outputs.dir }} key: jedi-${{ matrix.os }}-${{ hashFiles('scripts/jedi_cache.py') }}-${{ hashFiles('requirements/github-actions.yml') }} - name: Warm up jedi cache @@ -144,7 +144,7 @@ jobs: run: python scripts/tectonic_cache.py - name: Run frontend unit tests - if: ${{ !contains(matrix.os, 'win') }} + if: ${{ !contains(matrix.os, 'windows') }} run: jlpm test # js_cov_packages: diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 379440604..000000000 --- a/.travis.yml +++ /dev/null @@ -1,47 +0,0 @@ -language: python - -cache: - directories: - - .yarn-packages - - $HOME/.cache/yarn - - $HOME/.cache/pip - -env: - global: - - TRAVIS_NVM_VERSION=0.35.2 - -matrix: - include: - - python: '3.5' - env: TRAVIS_NODE_VERSION=10 - - python: '3.8' - env: TRAVIS_NODE_VERSION=12 - - python: '3.9-dev' - env: TRAVIS_NODE_VERSION=13 - - os: osx - env: TRAVIS_NODE_VERSION=12 - osx_image: xcode11 - language: shell - allow_failures: - - os: osx - -before_install: - - wget -qO- https://raw.githubusercontent.com/creationix/nvm/v${TRAVIS_NVM_VERSION}/install.sh | bash - - source ~/.nvm/nvm.sh && nvm install $TRAVIS_NODE_VERSION - - python3 -m pip install -r requirements/utest.txt - - python3 -m pip freeze - - python3 setup.py sdist - - python3 setup.py bdist_wheel - -install: - - python3 -m pip install dist/jupyter_lsp*.whl --no-deps -vv - - jlpm - -before_script: - - jlpm build - -script: - - jlpm test - - python3 -m jupyter serverextension list - - python3 -m jupyter serverextension list | grep jupyter_lsp - - python3 scripts/utest.py diff --git a/README.md b/README.md index e554d16ab..8097ed757 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Language Server Protocol integration for Jupyter(Lab) -[![Build Status](https://travis-ci.org/krassowski/jupyterlab-lsp.svg?branch=master)](https://travis-ci.org/krassowski/jupyterlab-lsp) ![tests](https://github.com/krassowski/jupyterlab-lsp/workflows/tests/badge.svg) [![Documentation Status](https://readthedocs.org/projects/jupyterlab-lsp/badge/?version=latest)](https://jupyterlab-lsp.readthedocs.io/en/latest/?badge=latest) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/krassowski/jupyterlab-lsp/master?urlpath=lab%2Ftree%2Fexamples%2FPython.ipynb) +![tests](https://github.com/krassowski/jupyterlab-lsp/workflows/tests/badge.svg) [![Documentation Status](https://readthedocs.org/projects/jupyterlab-lsp/badge/?version=latest)](https://jupyterlab-lsp.readthedocs.io/en/latest/?badge=latest) [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/krassowski/jupyterlab-lsp/master?urlpath=lab%2Ftree%2Fexamples%2FPython.ipynb) > _This project is still maturing, but you are welcome to check it out, leave feedback and/or a PR_ diff --git a/packages/jupyterlab-go-to-definition/README.md b/packages/jupyterlab-go-to-definition/README.md index 65b6d76c2..34c40c303 100644 --- a/packages/jupyterlab-go-to-definition/README.md +++ b/packages/jupyterlab-go-to-definition/README.md @@ -1,6 +1,6 @@ # Go to definition extension for JupyterLab -[![Build Status](https://travis-ci.org/krassowski/jupyterlab-go-to-definition.svg?branch=master)](https://travis-ci.org/krassowski/jupyterlab-go-to-definition) [![codebeat badge](https://codebeat.co/badges/89f4b78a-c28e-43a0-9b4c-35d36dbd9d5e)](https://codebeat.co/projects/github-com-krassowski-jupyterlab-go-to-definition-master) [![Binder](https://beta.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/krassowski/jupyterlab-go-to-definition/master?urlpath=lab/tree/examples/demo.ipynb) +[![codebeat badge](https://codebeat.co/badges/89f4b78a-c28e-43a0-9b4c-35d36dbd9d5e)](https://codebeat.co/projects/github-com-krassowski-jupyterlab-go-to-definition-master) [![Binder](https://beta.mybinder.org/badge.svg)](https://mybinder.org/v2/gh/krassowski/jupyterlab-go-to-definition/master?urlpath=lab/tree/examples/demo.ipynb) Jump to definition of a variable or function in JupyterLab notebook and file editor.