From 6bef91e520499b2af2782da0fd78c817ffa9e816 Mon Sep 17 00:00:00 2001 From: iasonkrom Date: Wed, 27 Mar 2024 18:56:32 -0500 Subject: [PATCH] use conda in ci and install root --- .github/workflows/ci.yml | 25 ++++++++++++++++++------- 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76df85f..267da26 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,12 +30,18 @@ jobs: name: JIT compiled tests for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5.0.0 - name: Set up Python ${{ matrix.python-version }} + - uses: conda-incubator/setup-miniconda@v2 + name: Set up Conda environment with: + auto-update-conda: true python-version: ${{ matrix.python-version }} - - name: Install dependencies + create-environment: test-env + conda-channels: conda-forge + - name: Install ROOT + run: | + conda install -c conda-forge root + - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install .[dev] @@ -44,7 +50,6 @@ jobs: coverage run --source=. --omit=".tox/*" --branch -m pytest . coverage report - tests_eager: runs-on: ubuntu-latest timeout-minutes: 150 @@ -56,12 +61,18 @@ jobs: name: Eager mode tests for Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5.0.0 - name: Set up Python ${{ matrix.python-version }} + - uses: conda-incubator/setup-miniconda@v2 + name: Set up Conda environment with: + auto-update-conda: true python-version: ${{ matrix.python-version }} - - name: Install dependencies + create-environment: test-env + conda-channels: conda-forge + - name: Install ROOT + run: | + conda install -c conda-forge root + - name: Install Python dependencies run: | python -m pip install --upgrade pip pip install .[dev]