-
Notifications
You must be signed in to change notification settings - Fork 14
49 lines (41 loc) · 1.3 KB
/
Copy pathci.yml
File metadata and controls
49 lines (41 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
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