Conda #416
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |