-
Notifications
You must be signed in to change notification settings - Fork 6
49 lines (38 loc) · 1.1 KB
/
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
40
41
42
43
44
45
46
47
48
49
name: Conda
on:
schedule:
- cron: '0 0 * * 1'
push:
branches: [ main ]
release:
types: [ created ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build-linux:
runs-on: ubuntu-latest
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 install -y python=3.9
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 }}