feat: Added support for workspace/didChangeConfiguration
notificati…
#214
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
pytest: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: "18" | |
- run: | | |
mkdir tests/langservers | |
- run: | | |
cd tests/langservers && npm install javascript-typescript-langserver | |
- shell: bash | |
run: | | |
cd tests/langservers | |
for VERSION in 10.0.0 11.0.0; do | |
wget "https://github.com/clangd/clangd/releases/download/$VERSION/clangd-linux-$VERSION.zip" | |
python3 -m zipfile -e "clangd-linux-$VERSION.zip" . | |
chmod +x clangd_$VERSION/bin/clangd | |
done | |
# TODO: go fails to install | |
# - name: Install Go | |
# uses: actions/setup-go@v2 | |
# with: | |
# go-version: 1.16.x | |
# - run: | | |
# cd tests/langservers && GOPATH="$(pwd)" GO111MODULE=on go get golang.org/x/tools/gopls@latest | |
- run: | | |
pip install poetry && poetry install | |
- run: | | |
poetry run pytest --cov=sansio_lsp_client --cov-report=xml:cov.xml -v | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: coverage-report | |
path: cov.xml |