Skip to content

Commit

Permalink
py?
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Sep 22, 2024
1 parent 6c1d80a commit 8bb6718
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
15 changes: 8 additions & 7 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
# to create a "native" platform experience, using as few cross-platform
# helper tools as possible.
#
# On Linux/Mac a virtualenv is used for testing. The effective virtual env
# is available under ~/VENV.
# On all platforms `hatch` is used for testing.
#
# All workers support remote login. Login details are shown at the top of each
# CI run log.
Expand Down Expand Up @@ -304,6 +303,8 @@ for:
# HTTPBIN
- "[ -n \"$DEPLOY_HTTPBIN_IMAGE\" ] && tools/appveyor/docker-load-httpbin || true"

build_script:
- py -m pip install hatch coverage
before_test:
- "[ \"$DATALAD_TESTS_SSH\" = 1 ] && tools/appveyor/setup-sshd || true"
- "[ \"$DATALAD_TESTS_SSH\" = 1 ] && tools/appveyor/verify-ssh-access || true"
Expand Down Expand Up @@ -334,7 +335,7 @@ for:
- 'hatch run tests.py${PY}:cov-combine'
- |
[ -n "$CODECOV_BINARY"] \
&& (python -m coverage xml && curl -Os "$CODECOV_BINARY" && chmod +x codecov && ./codecov) \
&& (py -m coverage xml && curl -Os "$CODECOV_BINARY" && chmod +x codecov && ./codecov) \
|| true
on_finish:
Expand Down Expand Up @@ -381,9 +382,9 @@ for:
# deploy the datalad installer, override version via DATALAD_INSTALLER_VERSION
- cmd:
IF DEFINED DATALAD_INSTALLER_VERSION (
python -m pip install "datalad-installer%DATALAD_INSTALLER_VERSION%"
pip install "datalad-installer%DATALAD_INSTALLER_VERSION%"
) ELSE (
python -m pip install datalad-installer
pip install datalad-installer
)
# Install git-annex on windows, otherwise INSTALL_SYSPKGS can be used
# deploy git-annex, if desired
Expand All @@ -401,7 +402,7 @@ for:

after_test:
- cmd: 'hatch run tests.py%PY%:cov-combine'
- cmd: python -m coverage xml
- cmd: py -m coverage xml
- cmd: curl -fsSL -o codecov.exe "https://uploader.codecov.io/latest/windows/codecov.exe"
- cmd: .\codecov.exe -f "coverage.xml"

Expand All @@ -414,7 +415,7 @@ for:
# ALL TEST RUNS
#
build_script:
- python -m pip install hatch coverage
- py -m pip install hatch coverage

after_build:
# Identity setup
Expand Down
2 changes: 1 addition & 1 deletion tools/appveyor/install-git-annex
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ set -e -u
# no install requested -> exit
[ -z "$1" ] && exit 0 || true

pip install datalad-installer${DATALAD_INSTALLER_VERSION:-}
py -m pip install datalad-installer${DATALAD_INSTALLER_VERSION:-}
datalad-installer -E ${HOME}/dlinstaller_env.sh --sudo ok $*

0 comments on commit 8bb6718

Please sign in to comment.