Skip to content

Commit

Permalink
tbshoot
Browse files Browse the repository at this point in the history
  • Loading branch information
bpinsard committed Feb 24, 2025
1 parent 940ad31 commit 075b95e
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/debug_win.yml
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 .

0 comments on commit 075b95e

Please sign in to comment.