forked from NopeForge/nope.gl
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 1.04 KB
/
ci_coverage.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
name: 'coverage tests Linux'
on:
push:
branches:
- 'main'
jobs:
coverage:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- name: Install dependencies
run: |
sudo apt -y update
sudo apt -y install libsdl2-dev libva-dev python3-venv gcovr spirv-tools glslang-dev libvulkan-dev mesa-vulkan-drivers vulkan-validationlayers
sudo apt -y install ffmpeg libavcodec-dev libavutil-dev libavformat-dev libavdevice-dev libavfilter-dev libswscale-dev libswresample-dev libpostproc-dev
sudo apt -y install libfreetype-dev libharfbuzz-dev libfribidi-dev
- name: Run tests
run: |
./configure.py --buildtype debug --coverage --debug-opts gl vk scene
make tests-setup
. venv/bin/ngli-activate
meson test -C builddir/tests --timeout-multiplier=3
- name: Get coverage
run: |
make coverage-xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1
with:
file: builddir/libnopegl/meson-logs/coverage.xml