Skip to content

Commit 208a3ff

Browse files
committed
test: don't run doctests on windows
The outputs are encoded weird and always fail, see https://github.com/NickCrews/mismo/actions/runs/16892406786/job/47855104192
1 parent 4fa3e6a commit 208a3ff

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

justfile

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ lint:
2020

2121
# run tests
2222
test *FILES:
23-
uv run --group dev --all-extras pytest {{FILES}}
23+
#!/usr/bin/env bash
24+
if [ "$(uname)" != "MINGW64_NT" ] && [ "$(uname)" != "MSYS_NT" ]; then
25+
uv run --group dev --all-extras pytest --doctest-modules {{FILES}}
26+
else
27+
uv run --group dev --all-extras pytest {{FILES}}
28+
fi
2429

2530
# include --dev-addr localhost:8001 to avoid conflicts with other mkdocs instances
2631
# serve docs for live editing

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,6 @@ addopts = [
9393
"--benchmark-skip",
9494
"--benchmark-group-by=name",
9595
"--benchmark-sort=name",
96-
"--doctest-modules",
9796
# tell pytest-xdist to run in multiple processes
9897
"-n=auto",
9998
]

0 commit comments

Comments
 (0)