From 75c918e2680b5d902162e17f9781b30e8284eace Mon Sep 17 00:00:00 2001 From: Vinicio Reynoso Date: Sun, 1 Jun 2025 13:58:14 -0500 Subject: [PATCH] Fix CI workflow: remove invalid runner.ncpu expression --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6a8c32..40af5a7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,9 +11,6 @@ on: jobs: build-and-test: runs-on: ubuntu-latest - env: - # Make sure parallel builds use all available cores - NUM_CORES: ${{ runner.ncpu }} steps: - name: Check out repository @@ -29,16 +26,15 @@ jobs: sudo apt-get install -y build-essential cmake git python3-dev python3-pip - name: Configure and build C++ code - working-directory: ${{ github.workspace }} run: | mkdir -p build cd build cmake .. -DCMAKE_BUILD_TYPE=Release - cmake --build . --parallel "${NUM_CORES}" + cmake --build . --parallel $(nproc) - name: Run C++ unit tests with CTest - working-directory: ${{ github.workspace }}/build run: | + cd build ctest --output-on-failure # ----------------------------- @@ -57,13 +53,11 @@ jobs: python -m pip install --upgrade pip setuptools scikit-build pytest - name: Install package (C++ + Python wrapper) via pip - working-directory: ${{ github.workspace }} run: | source venv/bin/activate pip install . - name: Run Python unit tests - working-directory: ${{ github.workspace }} run: | source venv/bin/activate pytest -q