@@ -27,37 +27,31 @@ jobs:
2727 strategy :
2828 fail-fast : false
2929 matrix :
30- python-version : ['3.10 ', '3.11', '3.12-dev ']
30+ python-version : ['3.12 ', '3.11', '3.10', '3.9', '3.8', '3.7 ']
3131 os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
32+ exclude :
33+ - os : ' ubuntu-latest'
34+ python-version : ' 3.7'
3235 include :
33- - os : ubuntu-20.04
34- python-version : ' 3.7'
35- NIGHTLY : nvim-linux64.tar.gz
36- NVIM_BIN_PATH : nvim-linux64/bin
37- EXTRACT : tar xzf
38- - os : ubuntu-latest
39- python-version : ' 3.8'
40- NIGHTLY : nvim-linux64.tar.gz
41- NVIM_BIN_PATH : nvim-linux64/bin
42- EXTRACT : tar xzf
43- - os : ubuntu-latest
44- python-version : ' 3.9'
45- NIGHTLY : nvim-linux64.tar.gz
46- NVIM_BIN_PATH : nvim-linux64/bin
47- EXTRACT : tar xzf
48- - os : ubuntu-latest
49- NIGHTLY : nvim-linux64.tar.gz
50- NVIM_BIN_PATH : nvim-linux64/bin
51- EXTRACT : tar xzf
52- - os : macos-latest
53- NIGHTLY : nvim-macos.tar.gz
54- NVIM_BIN_PATH : nvim-macos/bin
55- EXTRACT : tar xzf
56- - os : windows-latest
57- NIGHTLY : nvim-win64.zip
58- NVIM_BIN_PATH : nvim-win64/bin
59- EXTRACT : unzip
36+ - os : ' ubuntu-20.04'
37+ python-version : ' 3.7'
38+ NIGHTLY : nvim-linux64.tar.gz
39+ NVIM_BIN_PATH : nvim-linux64/bin
40+ EXTRACT : tar xzf
41+ - os : ' ubuntu-latest'
42+ NIGHTLY : nvim-linux64.tar.gz
43+ NVIM_BIN_PATH : nvim-linux64/bin
44+ EXTRACT : tar xzf
45+ - os : ' macos-latest'
46+ NIGHTLY : nvim-macos.tar.gz
47+ NVIM_BIN_PATH : nvim-macos/bin
48+ EXTRACT : tar xzf
49+ - os : ' windows-latest'
50+ NIGHTLY : nvim-win64.zip
51+ NVIM_BIN_PATH : nvim-win64/bin
52+ EXTRACT : unzip
6053
54+ name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
6155 runs-on : ${{ matrix.os }}
6256 steps :
6357 - uses : actions/checkout@v3
6660 cache : ' pip'
6761 python-version : ${{ matrix.python-version }}
6862
69- - name : install neovim
70- run : |
71- curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
72- ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
73- echo '${{ runner.os }}'
74-
7563 - name : update path (bash)
7664 if : runner.os != 'Windows'
7765 run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
@@ -80,16 +68,27 @@ jobs:
8068 if : runner.os == 'Windows'
8169 run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
8270
71+ - name : install neovim
72+ run : |
73+ curl -LO 'https://github.com/neovim/neovim/releases/download/nightly/${{ matrix.NIGHTLY }}'
74+ ${{ matrix.EXTRACT }} ${{ matrix.NIGHTLY }}
75+ echo '${{ runner.os }}'
76+ nvim --version
77+
8378 - name : install dependencies
8479 run : |
8580 python3 -m pip install -U pip
8681 python3 -m pip install tox tox-gh-actions
8782
83+ - name : check neovim
84+ run : |
85+ python3 -m pip install -e . # install pynvim
86+ nvim --headless --clean -c 'checkhealth | %+print | q'
87+
8888 - name : test with tox
8989 run : |
9090 echo $PATH
9191 which nvim
92- nvim --version
9392 which -a python3
9493 python3 --version
9594 tox run
0 commit comments