Skip to content

Commit

Permalink
Merge pull request #10 from datalad/force-py3
Browse files Browse the repository at this point in the history
Force python3 for datalad-installer
  • Loading branch information
yarikoptic authored Aug 30, 2022
2 parents d4f3953 + fdae682 commit e73e82c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 17 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/test-action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
with:
source: https://github.com/psychoinformatics-de/studyforrest-data-phase2
- name: Show Result
run: tree .
run: find .
- name: Test Result
run: |
[ -e studyforrest-data-phase2 ]
Expand All @@ -58,9 +58,14 @@ jobs:
[ -e dataset ]
[ -e dataset/sub-22/sub-22_task-movie_beh.json ]
[ -e dataset/sub-23/sub-23_task-movie_beh.json ]
run: find .

dataset-get-cache:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ ubuntu-20.04, macos-10.15, ubuntu-latest, macos-latest ]
name: Install Datalad, Get and Cache
steps:
- name: Checkout
Expand All @@ -70,7 +75,7 @@ jobs:
with:
source: https://github.com/psychoinformatics-de/studyforrest-data-phase2
- name: Show Result
run: tree .
run: find .
- name: Cache Dataset
uses: actions/cache@v3
with:
Expand All @@ -89,11 +94,11 @@ jobs:
branch: debian
source: https://github.com/psychoinformatics-de/studyforrest-data-phase2
- name: Show Result
run: tree .
run: find .
- name: Test Result
run: |
[ -e studyforrest-data-phase2 ]
install-datalad-branch:
runs-on: ubuntu-latest
name: Install Datalad via Branch
Expand Down
12 changes: 4 additions & 8 deletions get/scripts/get.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,11 @@ istrue() {
echo "$@" | grep -q -i -e '^true$'
}

# set -x # to ease debugging etc
# Ensure git annex added to path
echo "$CONDA/bin" >> "${GITHUB_PATH}"
export PATH=$CONDA/bin:$PATH

# to ease debugging locally -- if no GITHUB_PATH, do not bother
if [ -n "${GITHUB_PATH}" ]; then
# Ensure git annex added to path
echo "/usr/share/miniconda/bin" >> "${GITHUB_PATH}"
ls /usr/share/miniconda/bin
export PATH="/usr/share/miniconda/bin:$PATH"
fi
# set -x # to ease debugging etc

# compose command depending on the available options
#
Expand Down
9 changes: 5 additions & 4 deletions install/scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,18 @@ echo "install_root: ${install_root}"
git config --global --add user.name "${user}"
git config --global --add user.email "${email}"

python -m pip install --upgrade pip
python3 -m pip install --upgrade pip

# Install git annex
pip install datalad-installer
python3 -m pip install datalad-installer

datalad-installer git-annex
git config --global filter.annex.process "git-annex filter-process"

# Ensure git annex added to path
# Datalad needs to be installed to this conda environment
echo "/usr/share/miniconda/bin" >> "${GITHUB_PATH}"
export PATH="/usr/share/miniconda/bin:$PATH"
echo "$CONDA/bin" >> "${GITHUB_PATH}"
export PATH="$CONDA/bin:$PATH"
command -v pip

# Do we have a release or a branch?
Expand Down

0 comments on commit e73e82c

Please sign in to comment.