From bf4daf1486a4a35f14089722e08e7458e7d1b36b Mon Sep 17 00:00:00 2001 From: Daniele Forsi IU5HKX Date: Sat, 14 Jun 2025 19:22:06 +0200 Subject: [PATCH] Enable pytest in github actions, also for feature/* branches --- .github/workflows/c-cpp.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/c-cpp.yml b/.github/workflows/c-cpp.yml index 6741060f4..d635fb592 100644 --- a/.github/workflows/c-cpp.yml +++ b/.github/workflows/c-cpp.yml @@ -2,7 +2,7 @@ name: C/C++ CI on: push: - branches: [ master ] + branches: [ master, feature/* ] pull_request: branches: [ master ] @@ -21,6 +21,7 @@ jobs: sudo apt install libusb-1.0-0-dev sudo apt install libgpiod-dev sudo apt install grep + sudo apt install python3-dev python3-pytest - name: Install dependencies on macOS if: runner.os == 'macOS' run: | @@ -38,7 +39,11 @@ jobs: - name: README Debug run: grep README Makefile.am - name: configure - run: ./configure + if: runner.os != 'macOS' + run: ./configure --with-python-binding + - name: configure on macOS + if: runner.os == 'macOS' + run: ./configure --without-python-binding - name: make run: make -j 4 - name: make check