Skip to content

Merge pull request #168 from SpikeInterface/prepare_1.9.1 #4

Merge pull request #168 from SpikeInterface/prepare_1.9.1

Merge pull request #168 from SpikeInterface/prepare_1.9.1 #4

Workflow file for this run

# This workflow will upload a Python Package using Twine when a release is created
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
name: Test and Upload Python Package
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: "3.9"
- name: Which python
run: |
conda --version
- name: Install dependencies
run: |
pip install .[templates,test]
pip install setuptools wheel twine
- name: Test with pytest and build coverage report
run: |
pytest -s
- name: Publish on PyPI
env:
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python setup.py sdist bdist_wheel
twine upload dist/*