-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (29 loc) · 909 Bytes
/
conda.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
name: Conda
on: [push]
jobs:
build-linux:
runs-on: ubuntu-20.04
environment: deployment
strategy:
max-parallel: 5
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
conda env update --file conda/environment.yaml --name base
conda config --env --add channels conda-forge
conda config --env --add channels james.parkhurst
conda config --set anaconda_upload yes
- name: Build package
run: |
conda build conda/ --token=${{ secrets.ANACONDA_TOKEN }}