Merge pull request #49 from INGEOTEC/develop #7
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: | |
branches: | |
- master | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash -l {0} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.7", "3.8", "3.9"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: conda-incubator/setup-miniconda@v3 | |
with: | |
activate-environment: test | |
auto-update-conda: true | |
python-version: ${{ matrix.python-version }} | |
channels: ingeotec | |
allow-softlinks: true | |
channel-priority: flexible | |
show-channel-urls: true | |
- name: Install dependencies | |
run: | | |
conda install --yes pip conda-build jinja2 anaconda-client | |
pip install twine | |
pip install jieba | |
conda install --yes numpy scipy scikit-learn nltk nose microtc | |
- name: conda | |
env: | |
ANACONDA: ${{ secrets.ANACONDA }} | |
run: | | |
conda build conda-recipe --quiet | |
python continuous-integration/move-conda-package.py conda-recipe | |
python continuous-integration/binstar-push.py |