-
Notifications
You must be signed in to change notification settings - Fork 261
53 lines (50 loc) · 1.93 KB
/
deepinterpolation.yml
File metadata and controls
53 lines (50 loc) · 1.93 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
50
51
52
53
name: Testing deepinterpolation
# Manual only — deepinterpolation requires Python 3.10, incompatible with 3.11+ required by Zarr 3.0.0+
on:
workflow_dispatch:
concurrency: # Cancel previous workflows on the same pull request
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
build-and-test:
name: Test on ${{ matrix.os }} OS
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v46.0.1
- name: Deepinteprolation changes
id: modules-changed
run: |
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
if [[ $file == *"/deepinterpolation/"* ]]; then
echo "DeepInterpolation changed"
echo "DEEPINTERPOLATION_CHANGED=true" >> $GITHUB_OUTPUT
fi
done
- name: Install dependencies
if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }}
run: |
python -m pip install -U pip # Official recommended way
# install deepinteprolation
pip install tensorflow==2.8.4
pip install deepinterpolation@git+https://github.com/AllenInstitute/deepinterpolation.git
pip install numpy==1.26.4
pip install -e .[full,test_core]
- name: Pip list
if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }}
run: |
pip list
- name: Test DeepInterpolation with pytest
if: ${{ steps.modules-changed.outputs.DEEPINTERPOLATION_CHANGED == 'true' }}
run: |
pytest -v src/spikeinterface/preprocessing/deepinterpolation
shell: bash # Necessary for pipeline to work on windows