@@ -27,37 +27,31 @@ jobs:
27
27
strategy :
28
28
fail-fast : false
29
29
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 ']
31
31
os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
32
+ exclude :
33
+ - os : ' ubuntu-latest'
34
+ python-version : ' 3.7'
32
35
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
60
53
54
+ name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
61
55
runs-on : ${{ matrix.os }}
62
56
steps :
63
57
- uses : actions/checkout@v3
66
60
cache : ' pip'
67
61
python-version : ${{ matrix.python-version }}
68
62
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
-
75
63
- name : update path (bash)
76
64
if : runner.os != 'Windows'
77
65
run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
@@ -80,16 +68,27 @@ jobs:
80
68
if : runner.os == 'Windows'
81
69
run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
82
70
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
+
83
78
- name : install dependencies
84
79
run : |
85
80
python3 -m pip install -U pip
86
81
python3 -m pip install tox tox-gh-actions
87
82
83
+ - name : check neovim
84
+ run : |
85
+ python3 -m pip install -e . # install pynvim
86
+ nvim --headless --clean -c 'checkhealth | %+print | q'
87
+
88
88
- name : test with tox
89
89
run : |
90
90
echo $PATH
91
91
which nvim
92
- nvim --version
93
92
which -a python3
94
93
python3 --version
95
94
tox run
0 commit comments