From ccc8d094804c819f3f53e52bbd45e4acbc2a82cf Mon Sep 17 00:00:00 2001 From: Mathias Fussenegger Date: Sun, 8 Sep 2024 21:44:42 +0200 Subject: [PATCH] Fix CI (add missing python parser) --- .github/workflows/tests.yml | 14 ++++++++++++++ nvim-dap-python-scm-1.rockspec | 1 + 2 files changed, 15 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 9dbde8a..ebd1baf 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -25,6 +25,11 @@ jobs: neovim: true version: ${{ matrix.neovim_version }} + - name: Install treesitter + uses: tree-sitter/setup-action@v1 + with: + install-lib: false + - name: Install Lua uses: leso-kn/gh-actions-lua@master with: @@ -35,6 +40,15 @@ jobs: with: luarocksVersion: "3.11.0" + - name: Install tree-sitter-python + run: | + luarocks install tree-sitter-python --local + + - name: Copy python.so + run: | + mkdir -p ~/.config/nvim/parser + find ~/.luarocks -name python.so -exec cp {} ~/.config/nvim/parser/python.so \; + - name: Run tests run: | luarocks test --local diff --git a/nvim-dap-python-scm-1.rockspec b/nvim-dap-python-scm-1.rockspec index 6da1f34..2f31ff7 100644 --- a/nvim-dap-python-scm-1.rockspec +++ b/nvim-dap-python-scm-1.rockspec @@ -23,6 +23,7 @@ dependencies = { test_dependencies = { "nlua", + "tree-sitter-python" } source = {