Skip to content

Commit df3766b

Browse files
committed
ci: also run Nvim oldtest for if_pyth
Nvim oldtest for if_pyth cover some cases not covered by test suite of pynvim. Instead of porting them to pynvim, we can just clone neovim repo to run those oldtest
1 parent 9f7df02 commit df3766b

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,54 @@ jobs:
9696
which -a python3
9797
python3 --version
9898
tox run
99+
100+
oldtest:
101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
config:
105+
- python-version: '3.12'
106+
os: ['ubuntu', 'macos', 'windows']
107+
108+
name:
109+
oldtest (python ${{ matrix.config.python-version }},
110+
${{ matrix.os }}-${{ matrix.config[matrix.os] || 'latest' }})
111+
runs-on: ${{ matrix.os }}-${{ matrix.config[matrix.os] || 'latest' }}
112+
113+
steps:
114+
- uses: actions/checkout@v3
115+
- uses: actions/setup-python@v4
116+
with:
117+
cache: 'pip'
118+
python-version: ${{ matrix.config.python-version }}
119+
120+
- name: install pynvim
121+
run: |
122+
./scripts/disable_log_statements.sh # Make pynvim in release-ready state
123+
python3 -m pip install -e .
124+
125+
- name: clone neovim
126+
run: |
127+
git clone --depth=1 https://github.com/neovim/neovim.git neovim-repo
128+
129+
- name: run oldtest (Linux/macOS)
130+
if: runner.os != 'Windows'
131+
working-directory: neovim-repo
132+
run: |
133+
make oldtest TEST_FILE=test_python3.vim
134+
135+
- name: run oldtest (Windows)
136+
if: runner.os == 'Windows'
137+
uses: msys2/setup-msys2@v2
138+
with:
139+
update: true
140+
install: unzip
141+
pacboy: >-
142+
make:p gcc:p diffutils:p
143+
release: false
144+
145+
- name: oldtest
146+
shell: msys2 {0}
147+
working-directory: neovim-repo
148+
run: |
149+
mingw32-make VERBOSE=1 oldtest TEST_FILE=test_python3.vim

0 commit comments

Comments
 (0)