Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commite8f70b3

Browse files
committed
Testing with multiple python versions
1 parentd69efa5 commite8f70b3

File tree

1 file changed

+12
-38
lines changed

1 file changed

+12
-38
lines changed

‎.github/workflows/test_pymode.yml

Lines changed: 12 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,27 @@ name: Testing python-mode
33
on:[push]
44

55
jobs:
6-
test-python-3_8:
6+
test:
77
runs-on:ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version:["3.7", "3.8", "3.9", "3.10", "3.11"]
11+
env:
12+
PYTHON_CONFIGURE_OPTS:"--enable-shared"
813
steps:
9-
-uses:actions/checkout@v1
14+
-uses:actions/checkout@v3
15+
-name:Setup python ${{ matrix.python-version }}
16+
uses:actions/setup-python@v4
17+
with:
18+
python-version:${{ matrix.python-version }}
1019
-name:Install dependencies
1120
run:|
1221
sudo apt update
13-
export PYTHON_CONFIGURE_OPTS="--enable-shared"
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
22+
sudo apt install -yqq libncurses5-dev libgtk2.0-dev libatk1.0-dev libcairo2-dev libx11-dev libxpm-dev libxt-dev lua5.2 liblua5.2-dev libperl-dev git
1523
sudo apt remove --purge -yqq vim vim-runtime gvim
1624
-name:build and install vim from source
1725
working-directory:/tmp
1826
run:|
19-
export PYTHON_CONFIGURE_OPTS="--enable-shared"
2027
git clone https://github.com/vim/vim.git
2128
cd vim
2229
./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
@@ -36,36 +43,3 @@ jobs:
3643
git submodule update --init --recursive
3744
git submodule sync
3845
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
56-
sudo make && sudo make install
57-
-name:Install python-mode
58-
run:|
59-
export PYMODE_DIR="${HOME}/work/python-mode/python-mode"
60-
mkdir -p ${HOME}/.vim/pack/foo/start/
61-
ln -s ${PYMODE_DIR} ${HOME}/.vim/pack/foo/start/python-mode
62-
cp ${PYMODE_DIR}/tests/utils/pymoderc ${HOME}/.pymoderc
63-
cp ${PYMODE_DIR}/tests/utils/vimrc ${HOME}/.vimrc
64-
touch ${HOME}/.vimrc.before ${HOME}/.vimrc.after
65-
-name:Run python-mode test script
66-
run:|
67-
alias python=python3
68-
cd ${HOME}/work/python-mode/python-mode
69-
git submodule update --init --recursive
70-
git submodule sync
71-
bash tests/test.sh

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp