Skip to content

Commit

Permalink
ci: add Linux ROOT build to run ROOT-based tests (#1629)
Browse files Browse the repository at this point in the history
* ci: add Linux ROOT build to run ROOT-based tests

* define Linux-ROOT

* ci: fix indentation of yaml

* ci: remove redundant Python install

* ci: fix include indentation

* ci: fix run defaults

* ci: get numpy from conda

* refactor: remove un-needed `if`

* ci: use latest numpy version
Please enter the commit message for your changes. Lines starting

* ci: remove numpy-version usage in Linux-ROOT

* Remove the one "Linux-ROOT" line from setup.cfg.

Co-authored-by: Angus Hollands <[email protected]>
Co-authored-by: Jim Pivarski <[email protected]>
  • Loading branch information
3 people authored Aug 25, 2022
1 parent d651e4c commit 2b1f324
Showing 1 changed file with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -219,3 +219,67 @@ jobs:
- name: Codecov
run: 'bash <(curl -s https://codecov.io/bash)'
if: matrix.python-version == '3.9'

Linux-ROOT:
strategy:
matrix:
python-version:
- '3.8'

runs-on: ubuntu-20.04

env:
PIP_ONLY_BINARY: cmake

timeout-minutes: 30

# Required for miniconda to activate conda
defaults:
run:
shell: "bash -l {0}"

steps:
- uses: "actions/checkout@v3"
with:
submodules: true

- name: "Get conda"
uses: "conda-incubator/setup-miniconda@v2"
with:
auto-update-conda: true
python-version: "${{ matrix.python-version }}"
miniforge-variant: Mambaforge
use-mamba: true

- name: "Install ROOT"
run: |
mamba env list
mamba install root
mamba list
- name: Setup ccache
uses: hendrikmuhs/[email protected]
with:
key: >-
${{ github.job}}-${{matrix.python-version}}
- name: Use ccache
run: |
echo "/usr/lib/ccache" >> $GITHUB_PATH
echo "/usr/local/opt/ccache/libexec" >> $GITHUB_PATH
- name: Install NumPy
run: |
conda env list
mamba install numpy
conda list
- name: Build
run: 'python -m pip install -v .[test,dev]'

- name: Print versions
run: python -m pip list

- name: Test
run: >-
python -m pytest -vv -rs tests

0 comments on commit 2b1f324

Please sign in to comment.