-
-
Notifications
You must be signed in to change notification settings - Fork 771
71 lines (69 loc) · 3.1 KB
/
test_pymode.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: Testing python-mode
on: [push]
jobs:
test-python-3_8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt update
export PYTHON_CONFIGURE_OPTS="--enable-shared"
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
sudo apt remove --purge -yqq vim vim-runtime gvim
- name: build and install vim from source
working-directory: /tmp
run: |
export PYTHON_CONFIGURE_OPTS="--enable-shared"
git clone https://github.com/vim/vim.git
cd vim
./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
sudo make && sudo make install
- name: Install python-mode
run: |
export PYMODE_DIR="${HOME}/work/python-mode/python-mode"
mkdir -p ${HOME}/.vim/pack/foo/start/
ln -s ${PYMODE_DIR} ${HOME}/.vim/pack/foo/start/python-mode
cp ${PYMODE_DIR}/tests/utils/pymoderc ${HOME}/.pymoderc
cp ${PYMODE_DIR}/tests/utils/vimrc ${HOME}/.vimrc
touch ${HOME}/.vimrc.before ${HOME}/.vimrc.after
- name: Run python-mode test script
run: |
alias python=python3
cd ${HOME}/work/python-mode/python-mode
git submodule update --init --recursive
git submodule sync
bash tests/test.sh
test-python-3_9:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install dependencies
run: |
sudo apt update
export PYTHON_CONFIGURE_OPTS="--enable-shared"
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
sudo apt remove --purge -yqq vim vim-runtime gvim
- name: build and install vim from source
working-directory: /tmp
run: |
export PYTHON_CONFIGURE_OPTS="--enable-shared"
git clone https://github.com/vim/vim.git
cd vim
./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
sudo make && sudo make install
- name: Install python-mode
run: |
export PYMODE_DIR="${HOME}/work/python-mode/python-mode"
mkdir -p ${HOME}/.vim/pack/foo/start/
ln -s ${PYMODE_DIR} ${HOME}/.vim/pack/foo/start/python-mode
cp ${PYMODE_DIR}/tests/utils/pymoderc ${HOME}/.pymoderc
cp ${PYMODE_DIR}/tests/utils/vimrc ${HOME}/.vimrc
touch ${HOME}/.vimrc.before ${HOME}/.vimrc.after
- name: Run python-mode test script
run: |
alias python=python3
cd ${HOME}/work/python-mode/python-mode
git submodule update --init --recursive
git submodule sync
bash tests/test.sh