|
1 | 1 | name: Install packages |
2 | 2 | description: This action installs the package and its dependencies for testing |
3 | 3 |
|
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 | | - |
12 | 4 | runs: |
13 | 5 | using: "composite" |
14 | 6 | steps: |
15 | 7 | - name: Install dependencies |
16 | 8 | run: | |
17 | | - sudo apt install git |
18 | 9 | git config --global user.email "CI@example.com" |
19 | 10 | 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 |
23 | 11 | pip install tabulate # This produces summaries at the end |
24 | 12 | pip install -e .[test,extractors,streaming_extractors,test_extractors,full] |
25 | 13 | 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 |
36 | 15 | shell: bash |
37 | | - - name: git-annex install |
38 | 16 | run: | |
| 17 | + pip install datalad-installer |
39 | 18 | wget https://downloads.kitenet.net/git-annex/linux/current/git-annex-standalone-amd64.tar.gz |
40 | 19 | mkdir /home/runner/work/installation |
41 | 20 | mv git-annex-standalone-amd64.tar.gz /home/runner/work/installation/ |
|
44 | 23 | tar xvzf git-annex-standalone-amd64.tar.gz |
45 | 24 | echo "$(pwd)/git-annex.linux" >> $GITHUB_PATH |
46 | 25 | 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" |
47 | 36 | shell: bash |
0 commit comments