@@ -3,21 +3,56 @@ name: Testing python-mode
3
3
on : [push]
4
4
5
5
jobs :
6
- test-python-3 :
6
+ test-python-3_8 :
7
7
runs-on : ubuntu-latest
8
8
steps :
9
9
- uses : actions/checkout@v1
10
10
- name : Install dependencies
11
11
run : |
12
12
sudo apt update
13
+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
13
14
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
14
15
sudo apt remove --purge -yqq vim vim-runtime gvim
15
16
- name : build and install vim from source
16
17
working-directory : /tmp
17
18
run : |
19
+ export PYTHON_CONFIGURE_OPTS="--enable-shared"
18
20
git clone https://github.com/vim/vim.git
19
21
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
21
56
sudo make && sudo make install
22
57
- name : Install python-mode
23
58
run : |
0 commit comments