From 85b2ea3731e7d737ff95128f51d9276b7c52b2ec Mon Sep 17 00:00:00 2001 From: Jonas Rembser Date: Thu, 3 Sep 2026 16:29:48 +0000 Subject: [PATCH] Fix CI by installing ROOT from conda-forge The ROOT conda-nightly channel (https://root.cern/download/conda-nightly/latest) no longer exists and returns HTTP 404, so every CI run failed at the 'conda create' step. Install the ROOT release from conda-forge instead. Also update the deprecated actions (checkout@v2, setup-miniconda@v2), drop the obsolete Python 3.8 pin, drop the PYTHONHOME hack that was only needed for the non-relocatable nightly builds, and build in parallel. --- .github/workflows/ci.yaml | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3ab70eba..37440ece 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,16 +16,13 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - # Python doesn't matter, conda had been built only with 3.8.5 - python-version: ["3.8"] steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python-version }} (Miniconda) - uses: conda-incubator/setup-miniconda@v2 + - uses: actions/checkout@v4 + - name: Set up Miniconda + uses: conda-incubator/setup-miniconda@v3 with: auto-update-conda: true - python-version: ${{ matrix.python-version }} - name: Conda info shell: bash -l {0} @@ -39,21 +36,20 @@ jobs: - name: Conda install dependencies shell: bash -l {0} run: | - conda create -n root-nightly -y -c https://root.cern/download/conda-nightly/latest -c conda-forge root-nightly cmake pytest pytest-benchmark pytest-csv numpy numba + conda create -n rootbench -y -c conda-forge root cmake pytest pytest-benchmark pytest-csv numpy numba - name: Configure and build shell: bash -l {0} run: | - conda activate root-nightly + conda activate rootbench mkdir -p build && cd build cmake -Dcuda=OFF .. - cmake --build . + cmake --build . -j $(nproc) - name: Run benchmarks shell: bash -l {0} run: | - conda activate root-nightly - export PYTHONHOME=$CONDA + conda activate rootbench export RB_TEMP_FS=. cd build ctest -V