Update setup and pyproject.toml #40
Workflow file for this run
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: [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 }} |