-
Notifications
You must be signed in to change notification settings - Fork 0
72 lines (72 loc) · 1.86 KB
/
ci.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
72
name: CI
on:
- push
- pull_request
jobs:
test:
strategy:
matrix:
vim_version:
- head
- v9.0.0000
- v8.2.0000
- v8.1.0001
- v8.0.0002
- v7.4
platform:
- Linux
- macOS
- Windows
include:
- platform: Linux
os: ubuntu-latest
download: never
- platform: macOS
os: macos-latest
download: never
- platform: Windows
os: windows-latest
download: always
exclude:
- vim_version: v7.4
platform: macOS
fail-fast: false
name: Vim ${{ matrix.vim_version }} on ${{ matrix.platform }}
runs-on: ${{ matrix.os }}
env:
PROFILE: profile.txt
timeout-minutes: 10
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Checkout themis.vim
uses: actions/checkout@v4
with:
repository: thinca/vim-themis
path: vim-themis
- name: Setup Vim
id: vim
uses: thinca/action-setup-vim@v1
with:
vim_version: ${{ matrix.vim_version }}
download: ${{ matrix.download }}
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: 3.x
- name: Install covimerage
run: |
python -m pip install -U pip setuptools wheel
pip install -U covimerage
- name: Test
env:
THEMIS_VIM: ${{ steps.vim.outputs.executable }}
run: ./vim-themis/bin/themis --reporter spec
- name: Generate XML coverage report
run: |
covimerage write_coverage ${{ env.PROFILE }}
covimerage xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
flags: ${{ matrix.platform }}