Skip to content

Commit

Permalink
ci(appveyor): run tests in hatch environment
Browse files Browse the repository at this point in the history
  • Loading branch information
mih committed Sep 21, 2024
1 parent 3172b24 commit be8a954
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
14 changes: 3 additions & 11 deletions .appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -322,12 +322,7 @@ for:
export TMPDIR=/crippledfs
fi
- echo TMPDIR=$TMPDIR
# run tests on installed module, not source tree files
- mkdir __testhome__
# run tests on installed module, not source tree files
- |
cd __testhome__
hatch test --durations 20 -m "not (turtle)" -k "$KEYWORDS" --cov=datalad_next --cov datalad --cov-config=../.coveragerc --pyargs ${DTS}
- hatch test --cover --doctest-modules --durations 20 -m "not (turtle)" -k "$KEYWORDS" --pyargs ${DTS}

after_test:
- python -m coverage xml
Expand Down Expand Up @@ -390,11 +385,8 @@ for:
- tools\appveyor\verify-ssh-access

test_script:
# run tests on installed module, not source tree files
- cmd: md __testhome__
- cmd: cd __testhome__
# run test selection
- cmd: hatch test --durations 20 -m "not (turtle)" -k "%KEYWORDS%" --cov=datalad_next --cov-config=..\.coveragerc --pyargs %DTS%
# run test selection
- cmd: hatch test --cover --doctest-modules --durations 20 -m "not (turtle)" -k "%KEYWORDS%" --pyargs %DTS%

after_test:
- cmd: python -m coverage xml
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ extra-dependencies = [
"webdavclient3",
"wsgidav",
]
[tool.hatch.envs.hatch-test.env-vars]
# load the extention
DATALAD_EXTENSIONS_LOAD = "next"

[tool.hatch.envs.tests]
description = "run tests across Python versions"
Expand Down

0 comments on commit be8a954

Please sign in to comment.