-
Notifications
You must be signed in to change notification settings - Fork 14
47 lines (40 loc) · 1.21 KB
/
Copy pathci_windows.yml
File metadata and controls
47 lines (40 loc) · 1.21 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
name: CI (Windows)
on:
push:
branches:
- main
workflow_run:
workflows: [CI]
types: [completed]
branches:
- develop
workflow_dispatch:
jobs:
tests_windows:
runs-on: "windows-latest"
if: >-
github.event_name != 'workflow_run' ||
github.event.workflow_run.conclusion == 'success'
defaults:
run:
shell: bash -el {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@v5
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: |
PYTHONFAULTHANDLER=1 pytest --cache-clear --maxfail=30 --log-level=15 dartsort/tests/