29
29
test_python : python3
30
30
# Installed Vim with checks
31
31
- vim_version : installed
32
- make_target : test
32
+ make_target : fast- test
33
33
test_profile : vim-profile-installed.txt
34
34
test_python : " python -m coverage run --append"
35
35
@@ -44,22 +44,28 @@ jobs:
44
44
with :
45
45
fetch-depth : 10
46
46
47
- - name : Install Vint
48
- if : matrix.vim_version == 'installed'
49
- run : |
50
- python -m pip install -q --user flake8 git+https://github.com/Vimjas/vint
51
-
52
47
- name : Install Vim
53
48
if : matrix.vim_version != 'installed'
54
49
run : |
55
50
bash scripts/install-vim.sh
56
51
echo "$HOME/vim/bin" >> $GITHUB_PATH
57
52
53
+ - name : Install Vint
54
+ if : matrix.make_target == 'fast-test'
55
+ run : |
56
+ python -m pip install -q --user flake8 git+https://github.com/Vimjas/vint
57
+
58
58
- name : Install Covimerage
59
59
run : |
60
60
python -m pip install -q --user covimerage
61
61
python -m pip freeze
62
62
63
+ - name : Compile js and py
64
+ if : matrix.make_target == 'fast-test'
65
+ timeout-minutes : 10
66
+ run : |
67
+ make clean_compiled all
68
+
63
69
- name : Test
64
70
timeout-minutes : 10
65
71
run : |
68
74
vim --version
69
75
make --keep-going $MAKE_TARGET
70
76
77
+ - name : Commit and push
78
+ if : success() && matrix.make_target == 'fast-test' && github.ref_name == 'master'
79
+ run : |
80
+ if ! make fast-check; then
81
+ git config --local user.name 'github-actions[bot]'
82
+ git config --local user.email 'github-actions[bot]@users.noreply.github.com'
83
+ git remote set-url origin 'https://github-actions:${{ github.token }}@github.com/${{ github.repository }}'
84
+ git add js/vimlparser.js py/vimlparser.py
85
+ git commit -m 'generate js and py'
86
+ git push origin '${{ github.ref_name }}'
87
+ fi
88
+
71
89
- name : Coverage from Python
72
- if : matrix.make_target == 'test' && success()
90
+ if : success() && matrix.make_target == 'fast- test'
73
91
run : |
74
92
# Coverage from Python (cannot be combined with non-branch data).
75
93
if [[ -f .coverage_covimerage ]]; then
78
96
fi
79
97
80
98
- name : Codecov for Python
81
- if : matrix.make_target == 'test' && success()
99
+ if : success() && matrix.make_target == 'fast- test'
82
100
uses : codecov/codecov-action@v2
83
101
with :
84
102
files : coverage.xml
0 commit comments