Skip to content
Open
Show file tree
Hide file tree
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
14 changes: 9 additions & 5 deletions .github/workflows/build-macos-arm64.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ jobs:
run: |
perl -pli -e 's/magicmime: false/magicmime: true/' stack.yaml
# lts-24 caps `magic` at 1.1 while some transitive dep pulls 1.1.2;
# pin the exact-1.1 hackage revision that stack itself recommends.
echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml
# pin the exact-1.1 hackage revision (idempotent: upstream may
# already ship a `- magic-*` entry, avoid the stack S-5470 dup).
grep -qE '^- magic(-|@|$)' stack.yaml \
|| echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml

- name: stack setup
run: stack setup
Expand Down Expand Up @@ -468,9 +470,11 @@ jobs:

- name: Run datalad tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../datalad/tox.ini -s -v --pyargs datalad
testhome="$PWD/__testhome__"
toxini="../datalad/tox.ini"
mkdir -p "$testhome"
cd "$testhome"
python -m pytest -c "$toxini" -s -v --pyargs datalad

- name: Set final PR status
if: always() && github.event.inputs.pr != ''
Expand Down
14 changes: 9 additions & 5 deletions .github/workflows/build-macos.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,10 @@ jobs:
run: |
perl -pli -e 's/magicmime: false/magicmime: true/' stack.yaml
# lts-24 caps `magic` at 1.1 while some transitive dep pulls 1.1.2;
# pin the exact-1.1 hackage revision that stack itself recommends.
echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml
# pin the exact-1.1 hackage revision (idempotent: upstream may
# already ship a `- magic-*` entry, avoid the stack S-5470 dup).
grep -qE '^- magic(-|@|$)' stack.yaml \
|| echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml

- name: stack setup
run: stack setup
Expand Down Expand Up @@ -467,9 +469,11 @@ jobs:

- name: Run datalad tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../datalad/tox.ini -s -v --pyargs datalad
testhome="$PWD/__testhome__"
toxini="../datalad/tox.ini"
mkdir -p "$testhome"
cd "$testhome"
python -m pytest -c "$toxini" -s -v --pyargs datalad

- name: Set final PR status
if: always() && github.event.inputs.pr != ''
Expand Down
8 changes: 5 additions & 3 deletions .github/workflows/build-ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -510,9 +510,11 @@ jobs:

- name: Run datalad tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../datalad/tox.ini -s -v --pyargs datalad
testhome="$PWD/__testhome__"
toxini="../datalad/tox.ini"
mkdir -p "$testhome"
cd "$testhome"
python -m pytest -c "$toxini" -s -v --pyargs datalad

- name: Set final PR status
if: always() && github.event.inputs.pr != ''
Expand Down
20 changes: 15 additions & 5 deletions .github/workflows/build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,10 @@ jobs:
run: |
perl -pli -e 's/magicmime: false/magicmime: true/' stack.yaml
# lts-24 caps `magic` at 1.1 while some transitive dep pulls 1.1.2;
# pin the exact-1.1 hackage revision that stack itself recommends.
echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml
# pin the exact-1.1 hackage revision (idempotent: upstream may
# already ship a `- magic-*` entry, avoid the stack S-5470 dup).
grep -qE '^- magic(-|@|$)' stack.yaml \
|| echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml

- name: Set UPGRADE_LOCATION
run: |
Expand Down Expand Up @@ -442,9 +444,17 @@ jobs:

- name: Run datalad tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../datalad/tox.ini -s -v --pyargs datalad
# windows-2025: HOME and default tempfile live on C: while the
# actions workspace is on D:. Any datalad code that computes
# `os.path.relpath(some_C_path, some_D_path)` raises
# `ValueError: path is on mount 'D:', start on mount 'C:'`.
# Run pytest from a C: directory so tempdir + HOME + CWD all
# share one drive. See commit message for context.
testhome="$HOME/dl-testhome"
toxini="$GITHUB_WORKSPACE/datalad/tox.ini"
mkdir -p "$testhome"
cd "$testhome"
python -m pytest -c "$toxini" -s -v --pyargs datalad

- name: Set final PR status
if: always() && github.event.inputs.pr != ''
Expand Down
31 changes: 24 additions & 7 deletions .github/workflows/template/build-{{ostype}}.yaml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,10 @@ jobs:
run: |
perl -pli -e 's/magicmime: false/magicmime: true/' stack.yaml
# lts-24 caps `magic` at 1.1 while some transitive dep pulls 1.1.2;
# pin the exact-1.1 hackage revision that stack itself recommends.
echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml
# pin the exact-1.1 hackage revision (idempotent: upstream may
# already ship a `- magic-*` entry, avoid the stack S-5470 dup).
grep -qE '^- magic(-|@|$)' stack.yaml \
|| echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml

- name: stack setup
run: stack setup
Expand Down Expand Up @@ -238,8 +240,10 @@ jobs:
run: |
perl -pli -e 's/magicmime: false/magicmime: true/' stack.yaml
# lts-24 caps `magic` at 1.1 while some transitive dep pulls 1.1.2;
# pin the exact-1.1 hackage revision that stack itself recommends.
echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml
# pin the exact-1.1 hackage revision (idempotent: upstream may
# already ship a `- magic-*` entry, avoid the stack S-5470 dup).
grep -qE '^- magic(-|@|$)' stack.yaml \
|| echo '- magic-1.1@sha256:3a31ca1c49fa5f6a857f647471739bd240a6020af6ae43e71fb72201fc482fa2,928' >> stack.yaml

- name: Set UPGRADE_LOCATION
run: |
Expand Down Expand Up @@ -778,9 +782,22 @@ jobs:
{% endif %}
- name: Run datalad tests
run: |
mkdir -p __testhome__
cd __testhome__
python -m pytest -c ../datalad/tox.ini -s -v --pyargs datalad
{% if ostype == "windows" %}
# windows-2025: HOME and default tempfile live on C: while the
# actions workspace is on D:. Any datalad code that computes
# `os.path.relpath(some_C_path, some_D_path)` raises
# `ValueError: path is on mount 'D:', start on mount 'C:'`.
# Run pytest from a C: directory so tempdir + HOME + CWD all
# share one drive. See commit message for context.
testhome="$HOME/dl-testhome"
toxini="$GITHUB_WORKSPACE/datalad/tox.ini"
{% else %}
testhome="$PWD/__testhome__"
toxini="../datalad/tox.ini"
{% endif %}
mkdir -p "$testhome"
cd "$testhome"
python -m pytest -c "$toxini" -s -v --pyargs datalad

- name: Set final PR status
if: always() && github.event.inputs.pr != ''
Expand Down
Loading