Skip to content

Commit

Permalink
use conda in ci and install root
Browse files Browse the repository at this point in the history
  • Loading branch information
ikrommyd committed Mar 27, 2024
1 parent cf041b0 commit 6bef91e
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,18 @@ jobs:
name: JIT compiled tests for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
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]
Expand All @@ -44,7 +50,6 @@ jobs:
coverage run --source=. --omit=".tox/*" --branch -m pytest .
coverage report
tests_eager:
runs-on: ubuntu-latest
timeout-minutes: 150
Expand All @@ -56,12 +61,18 @@ jobs:
name: Eager mode tests for Python ${{ matrix.python-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/[email protected]
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]
Expand Down

0 comments on commit 6bef91e

Please sign in to comment.