diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..ee26ebd --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,36 @@ +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/spikesorters/archive/master.zip + pip install . + pip install pytest + pip install herdingspikes==0.3.7 + pip install pyqt5 + pip install hdbscan + pip install loky + pip install tridesclous>=1.6.3 + - name: Test with pytest and build coverage report + run: | + pytest diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml new file mode 100644 index 0000000..69219b4 --- /dev/null +++ b/.github/workflows/python-publish.yml @@ -0,0 +1,46 @@ +# 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 + - name: Set up Python 3.8 + uses: actions/setup-python@v2 + with: + python-version: 3.6 + - name: Add conda to system path + run: | + # $CONDA is an environment variable pointing to the root of the miniconda directory + echo $CONDA/bin >> $GITHUB_PATH + - name: Install dependencies + run: | + pip install . + pip install pytest + pip install setuptools wheel twine + pip install herdingspikes==0.3.7 + pip install pyqt5 + pip install hdbscan + pip install loky + pip install tridesclous>=1.6.3 + pip install + - 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/* diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 49cbbc4..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: python -cache: pip -os: -- linux -python: -- '3.6' -install: -- 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/spikesorters/archive/master.zip -- pip install . -- pip install pytest==4.3 -- pip install matplotlib==3.2.2 -- pip install herdingspikes==0.3.7 -- pip install pyqt5==5.13 -- pip install hdbscan -- pip install tridesclous==1.6.0 -script: python -m pytest -deploy: - provider: pypi - twine_version: 1.12.1 - user: alejoe91 - on: - tags: true - password: - secure: SdygZTk7yRS7e0qaqkE98GfN1yAY5wPYr0tZQf0/fh7qssFMBTosTdo1quHs7fAc5nAeth/RcS/kGVek0E+RVm0FQAaQjuoYmv1RLe9DJU4fLX3hSTC0UmQZRizaEp6qfrwigWH0WBtSR90HWSPMDqEaE40XeG6DF/1BIrmpD1UjepU7eAbSg178ZAlwWYr1Lfq7RDZxQx40iUEy0tTyfNX8Dj7W1txJ7rtsVugUU/10IVaaRQ6TRCCsDcXk2/dbF0cNbtvhUuxlcwY8+wH87MqkRT58Tsk4KWOs0OQAFLHtxiu9TQwpSpWrL2HSx00mTNHoWGgfqGYRkvWvPXU/soJkhy04DjIL15kOuwoL9czVBlOHeH24stAlYVC/rYbOxjtbqqK4waA5K5pe86B4+mkLxV7leLO0pGkQ52lC5yWnnD02j8h4Y/wtpoFWStlw1ppkr5+vgb6AQu8AQ8a7LgWYY8DrCY75AaFQnB4N8G9Asa7RYHujNN0L4N8h3gvDxXo8WVEdF3EdFMM1gOyFhAOeOuHH0+/JqPyEocTffkdS2l63TvQ9nivbkDlGrNL1cohNO14VNoY/DMc33A+Lquap7L29UCP2mc6Y417qjYWAfe+nbpeIy4WFzIZbwid3kTBKGSVLlmsumo46mt39rkr8VJWOzdFxNrghB6hONq4= diff --git a/setup.py b/setup.py index 52ba97a..b82f91b 100644 --- a/setup.py +++ b/setup.py @@ -24,9 +24,9 @@ 'pandas', 'networkx', 'joblib', - 'spikeextractors>=0.9.3', - 'spiketoolkit>=0.7.2', - 'spikesorters>=0.4.3', + 'spikeextractors>=0.9.7', + 'spiketoolkit>=0.7.6', + 'spikesorters>=0.4.5', ], classifiers=( "Programming Language :: Python :: 3", diff --git a/spikecomparison/version.py b/spikecomparison/version.py index 0e63983..702f6c9 100644 --- a/spikecomparison/version.py +++ b/spikecomparison/version.py @@ -1 +1 @@ -version = '0.3.2' +version = '0.3.3'