Skip to content

Merge pull request #128 from INGEOTEC/develop #62

Merge pull request #128 from INGEOTEC/develop

Merge pull request #128 from INGEOTEC/develop #62

Workflow file for this run

name: Pip
on:
workflow_dispatch:
push:
tags:
- v*
jobs:
build:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -l {0}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
auto-update-conda: true
python-version: ${{ matrix.python-version }}
channels: conda-forge
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
- name: Install dependencies
run: |
conda install --yes pip
pip install twine
conda install --yes numpy scipy scikit-learn nltk nose b4msa evodag cython IngeoML
python -c "import nltk; nltk.download('stopwords')"
python setup.py sdist
python setup.py bdist_wheel
- name: Pip
if: ${{ runner.os == 'Linux' }}
env:
TWINE: ${{ secrets.TWINE }}
run: |
twine upload --skip-existing -u __token__ -p $TWINE dist/*.tar.gz;
- name: Wheel
if: ${{ runner.os != 'Linux' }}
env:
TWINE: ${{ secrets.TWINE }}
run: |
twine upload --skip-existing -u __token__ -p $TWINE dist/*.whl;