Skip to content

Update workflow for docs #17

Update workflow for docs

Update workflow for docs #17

Workflow file for this run

---
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 doxygen clang-15 clang-format-15
- 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'