-
Notifications
You must be signed in to change notification settings - Fork 3
77 lines (74 loc) · 2.42 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
name: ci
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
# failing, because ROOT is not installed, on the root docker container. Need source activate? whatever...
on:
workflow_dispatch:
push:
tags:
- "*"
branches:
- master
- develop
- "release/*"
- "hotfix/*"
pull_request:
branches-ignore:
- "docs/*"
- "doc/*"
jobs:
test:
runs-on: '${{ matrix.os }}'
container: rootproject/root:6.20.08-ubuntu20.04
strategy:
fail-fast: False
matrix:
os: [ ubuntu-latest ]
python-version:
- '3.6'
- '3.7'
- '3.8'
- '3.9'
steps:
# - name: Install dependencies (Ubuntu)
# run: apt install -y gfortran libatlas-base-dev liblapack-dev build-essential
# - name: 'Set up Python ${{ matrix.python-version }}'
# uses: actions/setup-python@v2
# with:
# python-version: '${{ matrix.python-version }}'
- uses: actions/checkout@v2
# - run: >-
# wget
# https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh
# -O anaconda.sh > tmp.txt && echo "alive";
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
mamba-version: "*"
miniforge-version: "latest"
channels: conda-forge,defaults
channel-priority: true
activate-environment: condaenv
- shell: bash -el {0}
run: |
mamba install future git -y
pip install .[root]
# mamba install "root<6.22.0" future -y
- shell: bash -el {0}
run: pytest
# - run: bash anaconda.sh -b -p $HOME/anaconda > tmp.txt && echo "alive"
# - run: 'export PATH="$HOME/anaconda/bin:$PATH"'
# - run: conda config --set always_yes yes --set changeps1 no
# - run: conda config --add channels conda-forge
# - run: >-
# conda create -q --name=raredecay-env python=$TRAVIS_PYTHON_VERSION
# root > tmp.txt && echo "alive"
# - run: source activate raredecay-env
# - run: conda install -y coverage > tmp.txt && echo "alive"
# - run: conda install -y future > tmp.txt && echo "alive"
# - run: pip install coveralls > tmp.txt && echo "alive"
# - run: 'pip install .[all]'
# - run: coverage run -m unittest discover
# - run: coverage run --branch -m unittest discover
# - run: coveralls