@@ -12,7 +12,7 @@ permissions:
12
12
jobs :
13
13
tests :
14
14
name : " Conda"
15
- runs-on : ubuntu-latest
15
+ runs-on : ubuntu-18.04
16
16
17
17
steps :
18
18
- name : Checkout 🛎️
@@ -28,19 +28,30 @@ jobs:
28
28
python -VV
29
29
python -m site
30
30
python -m pip install --upgrade pip setuptools wheel
31
- python -m pip install --upgrade repo_helper
31
+ python -m pip install --upgrade whey-conda
32
32
# $CONDA is an environment variable pointing to the root of the miniconda directory
33
33
$CONDA/bin/conda update -q conda
34
34
$CONDA/bin/conda install conda-build=3.21.0
35
35
36
36
$CONDA/bin/conda config --add channels conda-forge
37
37
$CONDA/bin/conda config --add channels domdfcoding
38
38
39
- - name : " Build and install package "
39
+ - name : " Build and index channel "
40
40
run : |
41
- # This mess is only necessary because conda won't fix it themselves
42
- # https://github.com/conda/conda/issues/1884
43
-
44
- python -m repo_helper build --conda --out-dir conda-bld/noarch
41
+ python -m whey --builder whey_conda --out-dir conda-bld/noarch
45
42
$CONDA/bin/conda index ./conda-bld || exit 1
46
- $CONDA/bin/conda install -c file://$(pwd)/conda-bld coverage_pyver_pragma -y || exit 1
43
+
44
+ - name : " Search for package"
45
+ run : |
46
+ $CONDA/bin/conda search -c file://$(pwd)/conda-bld coverage_pyver_pragma
47
+ $CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels coverage_pyver_pragma
48
+
49
+ - name : " Install package"
50
+ run : |
51
+ $CONDA/bin/conda install -c file://$(pwd)/conda-bld coverage_pyver_pragma=0.3.0=py_1 -y || exit 1
52
+
53
+ - name : " Run Tests"
54
+ run : |
55
+ rm -rf coverage_pyver_pragma
56
+ $CONDA/bin/pip install -r tests/requirements.txt
57
+ $CONDA/bin/pytest tests/
0 commit comments