Skip to content

Commit db72bf6

Browse files
committed
Fix CI (add missing python parser)
1 parent 0844bf3 commit db72bf6

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.github/workflows/tests.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,11 @@ jobs:
2525
neovim: true
2626
version: ${{ matrix.neovim_version }}
2727

28+
- name: Install treesitter
29+
uses: tree-sitter/setup-action@v1
30+
with:
31+
install-lib: false
32+
2833
- name: Install Lua
2934
uses: leso-kn/gh-actions-lua@master
3035
with:
@@ -35,6 +40,15 @@ jobs:
3540
with:
3641
luarocksVersion: "3.11.0"
3742

43+
- name: Install tree-sitter-python
44+
run: |
45+
luarocks install tree-sitter-python --local
46+
47+
- name: Copy python.so
48+
run: |
49+
mkdir -p ~/.config/nvim/parser
50+
find ~/.luarocks -name python.so -exec cp {} ~/.config/nvim/parser/python.so \;
51+
3852
- name: Run tests
3953
run: |
4054
luarocks test --local

nvim-dap-python-scm-1.rockspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ dependencies = {
2323

2424
test_dependencies = {
2525
"nlua",
26+
"tree-sitter-python"
2627
}
2728

2829
source = {

0 commit comments

Comments
 (0)