-
-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (49 loc) · 1.36 KB
/
yambs-project.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
---
name: Yambs Project
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
GITHUB_API_TOKEN: ${{secrets.API_TOKEN}}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
env:
PYTHON_VERSION: ${{matrix.python-version}}
steps:
- uses: actions/checkout@master
with:
submodules: recursive
- uses: seanmiddleditch/gha-setup-ninja@master
with:
version: 1.11.1
- name: python${{matrix.python-version}} setup
uses: actions/setup-python@main
with:
python-version: ${{matrix.python-version}}
cache: pip
- run: pip${{matrix.python-version}} install vmklib>=1.8.0 yambs
- run: mk dz-sync
- run: mk yaml python-lint python-sa
- run: sudo apt-get install lcov
- run: mk t variant=clang coverage=false
- run: ninja all format-check
- run: mk dist docs
if: github.ref_name != 'master'
# Need to clean because codecov is not finding coverage otherwise.
- run: mk c keep=debug
- run: mk t
- uses: codecov/codecov-action@v3
with:
gcov: true
gcov_include: build/debug
gcov_ignore: .mypy_cache
- run: mk release
if: |
env.GITHUB_API_TOKEN != ''
&& github.ref_name == 'master'