Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use datalad-installer for git-annex on GitHub actions #239

Merged
merged 1 commit into from
Feb 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 8 additions & 7 deletions .github/workflows/test_crippledfs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@ jobs:
- name: Set up system
shell: bash
run: |
bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh)
# enable repo for devel git-annex, if needed
#sudo sed -e 's|\(deb.*data\)|#\1|' -e 's|/debian |/debian-devel |' /etc/apt/sources.list.d/neurodebian.sources.list | sudo tee /etc/apt/sources.list.d/neurodebian-devel.sources.list
sudo apt-get update -qq
sudo apt-get install eatmydata
sudo eatmydata apt-get install git-annex-standalone dosfstools
sudo apt-get install dosfstools
# 500 MB VFAT FS in a box
sudo dd if=/dev/zero of=/crippledfs.img count=500 bs=1M
sudo mkfs.vfat /crippledfs.img
Expand All @@ -38,8 +33,12 @@ jobs:
**/requirements*.txt
- name: Install dependencies
run: |
pip install -r requirements-devel.txt
python -m pip install --upgrade pip
# install git-annex via the datalad installer
python -m pip install datalad-installer
# use recent git-annex snapshot
datalad-installer -E ~/dlinstaller_env.sh --sudo ok git-annex -m snapshot
python -m pip install -r requirements-devel.txt
- name: Installation
run: |
# package install
Expand All @@ -50,6 +49,8 @@ jobs:
# forces all test repos/paths into the VFAT FS
TMPDIR: /crippledfs
run: |
# enable git-annex
. ~/dlinstaller_env.sh
mkdir -p __testhome__
cd __testhome__
# give detailed info on actual test setup
Expand Down