Skip to content

Commit 555cb27

Browse files
brianhusterjustinmk
andcommitted
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 Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
1 parent 9f7df02 commit 555cb27

1 file changed

Lines changed: 66 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,69 @@ jobs:
9696
which -a python3
9797
python3 --version
9898
tox run
99+
100+
test-upstream:
101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
config:
105+
- python-version: '3.12'
106+
os: ['ubuntu', 'macos', 'windows']
107+
108+
name:
109+
test-upstream (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 nvim
126+
run: |
127+
git clone --depth=1 https://github.com/neovim/neovim.git neovim-repo
128+
129+
- name: build nvim (Linux/macOS)
130+
if: runner.os != 'Windows'
131+
working-directory: neovim-repo
132+
run: make
133+
134+
- name: install build deps (Windows)
135+
if: runner.os == 'Windows'
136+
uses: msys2/setup-msys2@v2
137+
with:
138+
msystem: UCRT64
139+
update: true
140+
install: unzip
141+
pacboy: >-
142+
cmake:p make:p gcc:p diffutils:p
143+
release: false
144+
145+
- name: build nvim (Windows)
146+
if: runner.os == 'Windows'
147+
shell: msys2 {0}
148+
working-directory: neovim-repo
149+
run: mingw32-make VERBOSE=1
150+
151+
- name: run test-upstream (Linux/macOS)
152+
if: runner.os != "Windows"
153+
working-directory: neovim-repo
154+
run: |
155+
make oldtest TEST_FILE=test_python3.vim
156+
make functionaltest TEST_FILE=./test/functional/provider/python3_spec.lua
157+
158+
- name: run test-upstream (Windows)
159+
if: runner.os == "Windows"
160+
shell: msys2 {0}
161+
working-directory: neovim-repo
162+
run: |
163+
mingw32-make VERBOSE=1 oldtest TEST_FILE=test_python3.vim
164+
mingw32-make VERBOSE=1 functionaltest TEST_FILE=./test/functional/provider/python3_spec.lua

0 commit comments

Comments
 (0)