8000 Only test editable install workflow under Linux/macos · scientific-python/spin@3709d74 · GitHub
[go: up one dir, main page]

Skip to content

Commit 3709d74

Browse files
committed
Only test editable install workflow under Linux/macos
1 parent 6f46368 commit 3709d74

File tree

1 file changed

+14
-13
lines changed

1 file changed

+14
-13
lines changed

.github/workflows/test.sh

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,6 @@ else
4343
exit 1
4444
fi
4545

46-
ptest Does spin detect conflict with editable install?
47-
prun pip install --quiet --no-build-isolation -e .
48-
OUT=$(spin build)
49-
if [[ $OUT == *"Editable install of same source detected"* ]]; then
50-
echo "Yes"
51-
else
52-
echo "No"
53-
exit 1
54-
fi
55-
ptest Do commands work with editable install?
56-
prun spin test
57-
prun pip uninstall --quiet -y example_pkg
58-
5946
if [[ $PLATFORM == linux || $PLATFORM == darwin ]]; then
6047
# Detecting whether a file is executable is not that easy on Windows,
6148
# as it seems to take into consideration whether that file is associated as an executable.
@@ -68,6 +55,20 @@ if [[ $PLATFORM == linux || $PLATFORM == darwin ]]; then
6855
echo "No, output is: $OUT"
6956
exit 1
7057
fi
58+
59+
# Editable installs do not seem to work correctly under Windows at the moment
60+
ptest Does spin detect conflict with editable install?
61+
prun pip install --quiet --no-build-isolation -e .
62+
OUT=$(spin build)
63+
if [[ $OUT == *"Editable install of same source detected"* ]]; then
64+
echo "Yes"
65+
else
66+
echo "No"
67+
exit 1
68+
fi
69+
ptest Do commands work with editable install?
70+
prun spin test
71+
prun pip uninstall --quiet -y example_pkg
7172
fi
7273

7374
ptest test command runs

0 commit comments

Comments
 (0)
0