From e306dfeedca7ac4dcd754a9a43ecbd7d2c27a799 Mon Sep 17 00:00:00 2001 From: dimmus Date: Thu, 14 Sep 2023 21:05:23 +0500 Subject: [PATCH] github: add python setup for coverage --- .github/workflows/c-cpp.yml | 24 +++++++++++++++++------- 1 file changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 103169144..d835a77c4 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -8,22 +8,32 @@ on: jobs: build: - - runs-on: ubuntu-22.04 - + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest] + env: + OS: ${{ matrix.os }} + PYTHON: '3.10' steps: - - uses: actions/checkout@v3 - - name: install deps + - uses: actions/checkout@master + - name: install dependencies run: | sudo apt-get update sudo apt-get install -y autopoint meson ninja-build gettext libunwind-dev libefl-all-dev libeet1 libeet-bin - # sudo apt-get install -y check + sudo apt-get install -y check + - name: Setup Python + uses: actions/setup-python@master + with: + python-version: 3.10 - name: project setup (meson) run: meson setup . build - name: project build (ninja) run: ninja -C build - name: generate coverage report - run: ninja -C build coverage + run: | + pip install coverage| + ninja -C build coverage - name: upload to codecov uses: codecov/codecov-action@v3.1.4 env: