@@ -12,7 +12,7 @@ permissions:
1212jobs :
1313 tests :
1414 name : " Conda"
15- runs-on : ubuntu-latest
15+ runs-on : ubuntu-18.04
1616
1717 steps :
1818 - name : Checkout 🛎️
@@ -28,19 +28,30 @@ jobs:
2828 python -VV
2929 python -m site
3030 python -m pip install --upgrade pip setuptools wheel
31- python -m pip install --upgrade repo_helper
31+ python -m pip install --upgrade whey-conda
3232 # $CONDA is an environment variable pointing to the root of the miniconda directory
3333 $CONDA/bin/conda update -q conda
3434 $CONDA/bin/conda install conda-build=3.21.0
3535
3636 $CONDA/bin/conda config --add channels conda-forge
3737 $CONDA/bin/conda config --add channels domdfcoding
3838
39- - name : " Build and install package "
39+ - name : " Build and index channel "
4040 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
4542 $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