@@ -3,21 +3,56 @@ name: Testing python-mode
33on : [push]
44
55jobs :
6- test-python-3 :
6+ test-python-3_8 :
77 runs-on : ubuntu-latest
88 steps :
99 - uses : actions/checkout@v1
1010 - name : Install dependencies
1111 run : |
1212 sudo apt update
13+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
1314 sudo apt install -yqq libncurses5-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python3-dev lua5.2 liblua5.2-dev libperl-dev git
1415 sudo apt remove --purge -yqq vim vim-runtime gvim
1516 - name : build and install vim from source
1617 working-directory : /tmp
1718 run : |
19+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
1820 git clone https://github.com/vim/vim.git
1921 cd vim
20- ./configure --with-features=huge --enable-multibyte --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu --enable-perlinterp=yes --enable-luainterp=yes --enable-cscope --prefix=/usr/local
22+ ./configure --with-features=huge --enable-multibyte --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.8/config-3.8m-x86_64-linux-gnu --enable-perlinterp=yes --enable-luainterp=yes --enable-cscope --prefix=/usr/local
23+ sudo make && sudo make install
24+ - name : Install python-mode
25+ run : |
26+ export PYMODE_DIR="${HOME}/work/python-mode/python-mode"
27+ mkdir -p ${HOME}/.vim/pack/foo/start/
28+ ln -s ${PYMODE_DIR} ${HOME}/.vim/pack/foo/start/python-mode
29+ cp ${PYMODE_DIR}/tests/utils/pymoderc ${HOME}/.pymoderc
30+ cp ${PYMODE_DIR}/tests/utils/vimrc ${HOME}/.vimrc
31+ touch ${HOME}/.vimrc.before ${HOME}/.vimrc.after
32+ - name : Run python-mode test script
33+ run : |
34+ alias python=python3
35+ cd ${HOME}/work/python-mode/python-mode
36+ git submodule update --init --recursive
37+ git submodule sync
38+ bash tests/test.sh
39+ test-python-3_9 :
40+ runs-on : ubuntu-latest
41+ steps :
42+ - uses : actions/checkout@v1
43+ - name : Install dependencies
44+ run : |
45+ sudo apt update
46+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
47+ sudo apt install -yqq libncurses5-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev python3-dev lua5.2 liblua5.2-dev libperl-dev git
48+ sudo apt remove --purge -yqq vim vim-runtime gvim
49+ - name : build and install vim from source
50+ working-directory : /tmp
51+ run : |
52+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
53+ git clone https://github.com/vim/vim.git
54+ cd vim
55+ ./configure --with-features=huge --enable-multibyte --enable-python3interp=yes --with-python3-config-dir=/usr/lib/python3.9/config-3.9m-x86_64-linux-gnu --enable-perlinterp=yes --enable-luainterp=yes --enable-cscope --prefix=/usr/local
2156 sudo make && sudo make install
2257 - name : Install python-mode
2358 run : |
0 commit comments