Skip to content

Commit 0963611

Browse files
authored
Merge pull request #3569 from SpikeInterface/fix-codecov-tests
Fix codecov tests
2 parents 4a9fc04 + 986a74a commit 0963611

4 files changed

Lines changed: 14 additions & 26 deletions

File tree

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,20 @@
11
name: Install packages
22
description: This action installs the package and its dependencies for testing
33

4-
inputs:
5-
python-version:
6-
description: 'Python version to set up'
7-
required: false
8-
os:
9-
description: 'Operating system to set up'
10-
required: false
11-
124
runs:
135
using: "composite"
146
steps:
157
- name: Install dependencies
168
run: |
17-
sudo apt install git
189
git config --global user.email "CI@example.com"
1910
git config --global user.name "CI Almighty"
20-
python -m venv ${{ github.workspace }}/test_env # Environment used in the caching step
21-
python -m pip install -U pip # Official recommended way
22-
source ${{ github.workspace }}/test_env/bin/activate
2311
pip install tabulate # This produces summaries at the end
2412
pip install -e .[test,extractors,streaming_extractors,test_extractors,full]
2513
shell: bash
26-
- name: Force installation of latest dev from key-packages when running dev (not release)
27-
run: |
28-
source ${{ github.workspace }}/test_env/bin/activate
29-
spikeinterface_is_dev_version=$(python -c "import spikeinterface; print(spikeinterface.DEV_MODE)")
30-
if [ $spikeinterface_is_dev_version = "True" ]; then
31-
echo "Running spikeinterface dev version"
32-
pip install --no-cache-dir git+https://github.com/NeuralEnsemble/python-neo
33-
pip install --no-cache-dir git+https://github.com/SpikeInterface/probeinterface
34-
fi
35-
echo "Running tests for release, using pyproject.toml versions of neo and probeinterface"
14+
- name: Install git-annex
3615
shell: bash
37-
- name: git-annex install
3816
run: |
17+
pip install datalad-installer
3918
wget https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz
4019
mkdir /home/runner/work/installation
4120
mv git-annex-standalone-amd64.tar.gz /home/runner/work/installation/
@@ -44,4 +23,14 @@ runs:
4423
tar xvzf git-annex-standalone-amd64.tar.gz
4524
echo "$(pwd)/git-annex.linux" >> $GITHUB_PATH
4625
cd $workdir
26+
git config --global filter.annex.process "git-annex filter-process" # recommended for efficiency
27+
- name: Force installation of latest dev from key-packages when running dev (not release)
28+
run: |
29+
spikeinterface_is_dev_version=$(python -c "import spikeinterface; print(spikeinterface.DEV_MODE)")
30+
if [ $spikeinterface_is_dev_version = "True" ]; then
31+
echo "Running spikeinterface dev version"
32+
pip install --no-cache-dir git+https://github.com/NeuralEnsemble/python-neo
33+
pip install --no-cache-dir git+https://github.com/SpikeInterface/probeinterface
34+
fi
35+
echo "Running tests for release, using pyproject.toml versions of neo and probeinterface"
4736
shell: bash

.github/workflows/all-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
echo "$file was changed"
4848
done
4949
50-
- name: Set testing environment # This decides which tests are run and whether to install especial dependencies
50+
- name: Set testing environment # This decides which tests are run and whether to install special dependencies
5151
shell: bash
5252
run: |
5353
changed_files="${{ steps.changed-files.outputs.all_changed_files }}"

.github/workflows/full-test-with-codecov.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ jobs:
4545
env:
4646
HDF5_PLUGIN_PATH: ${{ github.workspace }}/hdf5_plugin_path_maxwell
4747
run: |
48-
source ${{ github.workspace }}/test_env/bin/activate
4948
pytest -m "not sorters_external" --cov=./ --cov-report xml:./coverage.xml -vv -ra --durations=0 | tee report_full.txt; test ${PIPESTATUS[0]} -eq 0 || exit 1
5049
echo "# Timing profile of full tests" >> $GITHUB_STEP_SUMMARY
5150
python ./.github/scripts/build_job_summary.py report_full.txt >> $GITHUB_STEP_SUMMARY

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ extractors = [
7373
]
7474

7575
streaming_extractors = [
76-
"ONE-api>=2.7.0", # alf sorter and streaming IBL
76+
"ONE-api>=2.7.0,<2.10.0", # alf sorter and streaming IBL
7777
"ibllib>=2.36.0", # streaming IBL
7878
# Following dependencies are for streaming with nwb files
7979
"pynwb>=2.6.0",

0 commit comments

Comments
 (0)