19
19
- PYVER=3.6 NPY="numpy==1.14.5"
20
20
- PYVER=3.6 NPY="numpy>=1.15"
21
21
22
- - PYVER=3.7 NPY="numpy==1.14.5"
23
22
- PYVER=3.7 NPY="numpy>=1.15"
24
23
25
24
- PYVER=3.8 NPY="numpy>=1.15"
26
25
26
+ - PYVER=3.9 NPY="numpy>=1.15"
27
+
27
28
# - PYVER=pypy2.7 NPY="numpy>=1.15"
28
29
29
30
- PYVER=pypy3.6 NPY="numpy>=1.15"
30
31
31
32
install :
32
33
# Install conda
33
- - wget -nv http ://repo.continuum.io/miniconda/Miniconda3- latest-Linux-x86_64.sh -O miniconda.sh
34
+ - wget -nv https ://github.com/conda-forge/miniforge/releases/ latest/download/Miniforge3 -Linux-x86_64.sh -O miniconda.sh
34
35
- bash miniconda.sh -b -p $HOME/miniconda
35
- - export PATH="$HOME/miniconda/bin:$PATH"
36
- - hash -r
37
- - conda config --add channels conda-forge;
38
- # conda install --quiet --yes -c conda-forge/label/mamba-alpha mamba
36
+ - eval "$($HOME/miniconda/bin/python -m conda shell.bash hook)"
37
+ - conda install --quiet --yes mamba
39
38
- conda config --set always_yes yes --set changeps1 no
40
39
# Create the conda testing environment
41
- # FIXME: Mamba decides to upgrade Python here so pin it again
42
- # FIXME: Channel priority is also mixed up
43
- # FIXME: Mamba doesn't install pip by default
44
- # FIXME: Mamba causes pip install numpy to be extremely slow
40
+ # pyopenssl is for deployment
45
41
- if [[ "${PYVER}" = pypy* ]]; then
46
- conda create --quiet --yes -n testenv ${PYVER};
47
- elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
48
- conda create --quiet --yes -n testenv python=${PYVER} pip;
42
+ mamba create --quiet --yes -n testenv ${PYVER};
43
+ elif [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
44
+ mamba create --quiet --yes -n testenv python=${PYVER} pip pyopenssl ;
49
45
else
50
- conda create --quiet --yes -n testenv python=${PYVER};
46
+ mamba create --quiet --yes -n testenv python=${PYVER} pyopenssl ;
51
47
fi
52
- - source activate testenv
53
- - if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
54
- conda install --quiet --yes python=${PYVER} pip root;
55
- source activate testenv;
48
+ - conda activate testenv
49
+ - if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
50
+ mamba install --quiet --yes -n testenv python=${PYVER} pip root;
51
+ conda activate testenv;
56
52
fi
57
53
- pip install --upgrade setuptools-scm
58
54
- pip install $NPY
@@ -64,10 +60,6 @@ install:
64
60
- pip install cachetools pkgconfig lz4 zstandard xxhash mock requests "pytest>=3.9" pytest-runner
65
61
- if [[ ${PYVER} = "2.7" ]] ; then pip install backports.lzma ; fi
66
62
- pip install pandas
67
- # pyopenssl is for deployment
68
- - if [[ ${PYVER} != pypy* ]] ; then
69
- conda install -c anaconda python=${PYVER} pyopenssl;
70
- fi
71
63
- wget -O tests/samples/Event.root http://scikit-hep.org/uproot/examples/Event.root
72
64
- pip install pytest-error-for-skips
73
65
@@ -78,7 +70,7 @@ addons:
78
70
- libatlas-base-dev
79
71
80
72
script :
81
- if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ]; then
73
+ if [ "${PYVER}" = "2.7" ] || [ "${PYVER}" = "3.6" ] || [ "${PYVER}" = "3.7" || [ "${PYVER}" = "3.8" ] || [ "${PYVER}" = "3.9" ] ; then
82
74
pytest --error-for-skips -v tests;
83
75
else
84
76
pytest -v tests;
0 commit comments