@@ -27,35 +27,30 @@ jobs:
27
27
strategy :
28
28
fail-fast : false
29
29
matrix :
30
- python-version : ['3.12', '3.11', '3.10', '3.9', '3.8', '3.7']
31
- os : ['ubuntu-latest', 'macos-latest', 'windows-latest']
32
- exclude :
33
- - os : ' ubuntu-latest'
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'
41
- include :
42
- - os : ' ubuntu-20.04'
43
- python-version : ' 3.7'
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'
30
+ config : [
31
+ { python-version: '3.13', neovim-version: 'nightly' },
32
+ { python-version: '3.12', neovim-version: 'nightly' },
33
+ { python-version: '3.12', neovim-version: 'stable' },
34
+ { python-version: '3.11' },
35
+ { python-version: '3.10' },
36
+ # for python 3.7~3.9, use older version of OS (ubuntu-20.04 and macos-12)
37
+ { python-version: '3.9', ubuntu: '20.04', macos: '13' },
38
+ { python-version: '3.8', ubuntu: '20.04', macos: '13' },
39
+ { python-version: '3.7', ubuntu: '20.04', macos: '13' },
40
+ ]
41
+ os : ['ubuntu', 'macos', 'windows']
50
42
51
- name : " test (python ${{ matrix.python-version }}, ${{ matrix.os }})"
52
- runs-on : ${{ matrix.os }}
43
+ name :
44
+ test (python ${{ matrix.config.python-version }},
45
+ ${{ matrix.config.neovim-version || 'nightly' }},
46
+ ${{ matrix.os }}-${{ matrix.config[matrix.os] || 'latest' }})
47
+ runs-on : ${{ matrix.os }}-${{ matrix.config[matrix.os] || 'latest' }}
53
48
steps :
54
49
- uses : actions/checkout@v3
55
50
- uses : actions/setup-python@v4
56
51
with :
57
52
cache : ' pip'
58
- python-version : ${{ matrix.python-version }}
53
+ python-version : ${{ matrix.config. python-version }}
59
54
60
55
- name : install neovim (Linux/macOS)
61
56
if : runner.os != 'Windows'
70
65
echo "$RUNNER_OS not supported"; exit 1;
71
66
fi
72
67
73
- curl -LO "https://github.com/neovim/neovim/releases/download/nightly/${BASE}.tar.gz"
68
+ curl -LO "https://github.com/neovim/neovim/releases/download/${{ matrix.config.neovim-version || ' nightly' }} /${BASE}.tar.gz"
74
69
tar xzf "${BASE}.tar.gz"
75
70
echo "RUNNER_OS = $RUNNER_OS"
76
71
$BASE/bin/nvim --version
0 commit comments