@@ -32,24 +32,21 @@ jobs:
32
32
exclude :
33
33
- os : ' ubuntu-latest'
34
34
python-version : ' 3.7'
35
+ - os : ' macos-latest'
36
+ python-version : ' 3.7'
37
+ - os : ' macos-latest'
38
+ python-version : ' 3.8'
39
+ - os : ' macos-latest'
40
+ python-version : ' 3.9'
35
41
include :
36
42
- os : ' ubuntu-20.04'
37
43
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-x86_64.tar.gz
47
- NVIM_BIN_PATH : nvim-macos-x86_64/bin
48
- EXTRACT : tar xzf
49
- - os : ' windows-latest'
50
- NIGHTLY : nvim-win64.zip
51
- NVIM_BIN_PATH : nvim-win64/bin
52
- EXTRACT : unzip
44
+ - os : ' macos-12'
45
+ python-version : ' 3.7'
46
+ - os : ' macos-12'
47
+ python-version : ' 3.8'
48
+ - os : ' macos-12'
49
+ python-version : ' 3.9'
53
50
54
51
name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
55
52
runs-on : ${{ matrix.os }}
@@ -60,20 +57,36 @@ jobs:
60
57
cache : ' pip'
61
58
python-version : ${{ matrix.python-version }}
62
59
63
- - name : update path (bash )
60
+ - name : install neovim (Linux/macOS )
64
61
if : runner.os != 'Windows'
65
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" >> $GITHUB_PATH
62
+ run : |
63
+ set -eu -o pipefail
66
64
67
- - name : update path (windows)
68
- if : runner.os == 'Windows'
69
- run : echo "$(pwd)/${{ matrix.NVIM_BIN_PATH }}" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
65
+ if [[ "$RUNNER_OS" == "Linux" ]]; then
66
+ BASE="nvim-linux64"
67
+ elif [[ "$RUNNER_OS" == "macOS" ]]; then
68
+ BASE="nvim-macos-x86_64"
69
+ else
70
+ echo "$RUNNER_OS not supported"; exit 1;
71
+ fi
72
+
73
+ curl -LO "https://github.com/neovim/neovim/releases/download/nightly/${BASE}.tar.gz"
74
+ tar xzf "${BASE}.tar.gz"
75
+ echo "RUNNER_OS = $RUNNER_OS"
76
+ $BASE/bin/nvim --version
70
77
71
- - name : install neovim
78
+ # update $PATH for later steps
79
+ echo "$(pwd)/$BASE/bin" >> $GITHUB_PATH
80
+
81
+ - name : install neovim (Windows)
82
+ if : runner.os == 'Windows'
72
83
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
84
+ curl -LO "https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip"
85
+ unzip nvim-win64.zip
86
+ nvim-win64/bin/nvim --version
87
+
88
+ # update $PATH for later steps
89
+ echo "$(pwd)/nvim-win64/bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
77
90
78
91
- name : install dependencies
79
92
run : |
0 commit comments