Skip to content

v0.5.23 PR

v0.5.23 PR #1337

Workflow file for this run

name: CI
on:
push:
branches:
- main
- develop
pull_request:
branches-ignore:
- develop
workflow_dispatch:
jobs:
tests:
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
path: dartsort
- name: Fetch tags and describe
run: pushd dartsort/ && git fetch --prune --unshallow --tags && git describe && popd
- uses: actions/setup-python@v6
with:
python-version: "3.x"
cache: "pip" # caching pip dependencies
- name: Install dependencies
run: |
python -m pip install -U pip # seems necessary to make sure pip is my pip
pip install --extra-index-url https://download.pytorch.org/whl/cpu torch
pip install git+https://github.com/SpikeInterface/spikeinterface.git
pip install -e dartsort/[full,test]
- name: pytest
run: |
pytest --cache-clear --log-level=15 --durations=100 --cov=dartsort/src/dartsort --cov-config=dartsort/pyproject.toml --cov-report lcov --cov-report term dartsort/tests/
- name: Coveralls
uses: coverallsapp/github-action@master
with:
path-to-lcov: coverage.lcov
fail-on-error: false