Skip to content
This repository has been archived by the owner on Jun 6, 2023. It is now read-only.

Commit

Permalink
GH actions and incr version
Browse files Browse the repository at this point in the history
  • Loading branch information
alejoe91 committed Jul 28, 2021
1 parent 36af634 commit 057bccf
Show file tree
Hide file tree
Showing 7 changed files with 77 additions and 38 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Python Package using Conda

on: [push]

jobs:
build-and-test:
name: Test on (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v2
- uses: s-weigand/setup-conda@v1
with:
python-version: 3.8
- name: Which python
run: |
conda --version
which python
- name: Install dependencies
run: |
pip install https://github.com/SpikeInterface/spikeextractors/archive/master.zip
pip install https://github.com/SpikeInterface/spiketoolkit/archive/master.zip
pip install https://github.com/SpikeInterface/spikecomparison/archive/master.zip
pip install .
pip install pytest
- name: Test with pytest and build coverage report
run: |
pytest
39 changes: 39 additions & 0 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# 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.6
- name: Which python
run: |
conda --version
which python
- name: Install dependencies
run: |
pip install .
pip install setuptools wheel twine
pip install pytest
- name: Test with pytest and build coverage report
run: |
pytest
- 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/*
33 changes: 0 additions & 33 deletions .travis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@
packages=setuptools.find_packages(),
install_requires=[
'numpy',
'spiketoolkit>=0.7.3',
'spikecomparison>=0.3.2',
'spikeextractors>=0.9.7',
'spiketoolkit>=0.7.6',
'spikecomparison>=0.3.3',
'matplotlib',
'MEAutility>=1.4.8'
],
Expand Down
2 changes: 1 addition & 1 deletion spikewidgets/version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version = '0.5.3'
version = '0.5.4'
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
from .correlograms_phy import compute_correlograms


def plot_autocorrelograms(sorting, sampling_frequency=None, unit_ids=None, bin_size=2, window=50,
def plot_autocorrelograms(sorting, sampling_frequency=None, unit_ids=None, bin_size=0.1, window=1,
figure=None, ax=None, axes=None):
"""
Plots spike train auto-correlograms.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@


def plot_unit_waveforms(recording, sorting, channel_ids=None, unit_ids=None, channel_locs=True, radius=None,
max_channels=None, plot_templates=True, show_all_channels=True, color='k', lw=2, axis_equal=False,
max_channels=None, plot_templates=True, show_all_channels=True, color='k', lw=2,
axis_equal=False,
plot_channels=False, set_title=True, figure=None, ax=None, axes=None, **waveforms_kwargs):
"""
Plots unit waveforms.
Expand Down

0 comments on commit 057bccf

Please sign in to comment.