-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: 'debug windows datalad' | ||
on: | ||
push: | ||
branches: [ test_win ] | ||
pull_request: | ||
branches: [ main ] | ||
workflow_dispatch: | ||
jobs: | ||
|
||
debug_windows: | ||
runs-on: windows-latest | ||
env: | ||
SSH_PRIVATE_KEY: ${{ github.event.repository.private && secrets.CNEUROMOD_BOT_SSH_KEY || secrets.CNEUROMOD_USER_BOT_SSH_KEY }} | ||
GIT_USERNAME: dummy | ||
GIT_EMAIL: [email protected] | ||
steps: | ||
- name: setup python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: 3.11 | ||
- name: setup datalad | ||
run: | | ||
python -m pip install datalad-installer | ||
datalad-installer git-annex -m datalad/git-annex:release | ||
git config --global filter.annex.process "git-annex filter-process" | ||
python -m pip install datalad pytest pytest-order ssh_agent_setup | ||
- name: "Test deploy" | ||
shell: bash | ||
run: | | ||
mkdir -p $HOME/.ssh | ||
git config --global user.email "$GIT_EMAIL" | ||
git config --global user.name "$GIT_USERNAME" | ||
ssh-keyscan -H -t rsa ${GITHUB_SERVER_URL##https://} >> $HOME/.ssh/known_hosts | ||
echo "$SSH_PRIVATE_KEY" > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa | ||
git config --global datalad.ssh.identityfile ~/.ssh/id_rsa | ||
datalad install -s [email protected]:${GITHUB_REPOSITORY}.git /tmp/ds_ssh | ||
cd /tmp/ds_ssh | ||
git-annex -d fsck --fast --from conp-ria-storage-http | ||
#git-annex -d get . |