-
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (46 loc) · 1.6 KB
/
conda_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
# This file is managed by 'repo_helper'. Don't edit it directly.
---
name: Conda Tests
on:
push:
branches: ["master"]
permissions:
contents: read
jobs:
tests:
name: "Conda"
runs-on: ubuntu-latest
steps:
- name: Checkout 🛎️
uses: "actions/checkout@v2"
- name: Setup Python 🐍
uses: "actions/setup-python@v2"
with:
python-version: "3.8"
- name: Install dependencies 🔧
run: |
python -VV
python -m site
python -m pip install --upgrade pip setuptools wheel
python -m pip install --upgrade whey-conda
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda update -q conda
$CONDA/bin/conda install conda-build=3.21.0
$CONDA/bin/conda config --add channels conda-forge
$CONDA/bin/conda config --add channels domdfcoding
- name: "Build and index channel"
run: |
python -m whey --builder whey_conda --out-dir conda-bld/noarch
$CONDA/bin/conda index ./conda-bld || exit 1
- name: "Search for package"
run: |
$CONDA/bin/conda search -c file://$(pwd)/conda-bld formate
$CONDA/bin/conda search -c file://$(pwd)/conda-bld --override-channels formate
- name: "Install package"
run: |
$CONDA/bin/conda install -c file://$(pwd)/conda-bld formate=0.4.7=py_1 -y || exit 1
- name: "Run Tests"
run: |
rm -rf formate
$CONDA/bin/pip install -r tests/requirements.txt
$CONDA/bin/pytest tests/