Skip to content

Merge pull request #9 from INGEOTEC/develop #2

Merge pull request #9 from INGEOTEC/develop

Merge pull request #9 from INGEOTEC/develop #2

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, windows-latest]
python-version: ["3.9", "3.10", "3.11"]
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: conda-forge
allow-softlinks: true
channel-priority: flexible
show-channel-urls: true
- name: Install dependencies
run: |
conda install --yes pip
pip install twine build
conda install --yes numpy scipy scikit-learn nose evomsa
python -m build
- 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;