Skip to content

Commit 48d3793

Browse files
committed
Cleanup
1 parent 851bba7 commit 48d3793

File tree

1 file changed

+4
-19
lines changed

1 file changed

+4
-19
lines changed

ci.sh

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,31 +30,20 @@ python -m uv venv --seed --allow-existing
3030

3131
# Determine the platform and activate the virtual environment accordingly
3232
case "$OSTYPE" in
33-
linux-gnu*|linux-musl*)
34-
# Linux
35-
echo "Activating virtual environment on Linux..."
36-
source .venv/bin/activate
37-
;;
38-
darwin*)
39-
# macOS
40-
echo "Activating virtual environment on macOS..."
33+
linux-gnu*|linux-musl*|darwin*)
4134
source .venv/bin/activate
4235
;;
4336
cygwin*|msys*)
44-
# Windows
45-
echo "Activating virtual environment on Windows..."
4637
source .venv/Scripts/activate
4738
;;
4839
*)
49-
echo "::error:: Unknown OS. Please activate the virtual environment manually."
40+
echo "::error:: Unknown OS. Please add an activation method for '$OSTYPE'."
5041
exit 1
5142
;;
5243
esac
53-
python -m pip install uv==$UV_VERSION
5444

55-
# python -m uv build
56-
# wheel_package=$(ls dist/*.whl)
57-
# python -m uv pip install "$PROJECT @ $wheel_package" -c test-requirements.txt
45+
# Install uv in virtual environment
46+
python -m pip install uv==$UV_VERSION
5847

5948
if [ "$CHECK_FORMATTING" = "1" ]; then
6049
python -m uv sync --extra tests --extra tools
@@ -65,7 +54,6 @@ else
6554
# expands to 0 != 1 if NO_TEST_REQUIREMENTS is not set, if set the `-0` has no effect
6655
# https://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#tag_18_06_02
6756
if [ "${NO_TEST_REQUIREMENTS-0}" == 1 ]; then
68-
# python -m uv pip install pytest coverage -c test-requirements.txt
6957
python -m uv sync --extra tests
7058
flags=""
7159
#"--skip-optional-imports"
@@ -90,9 +78,6 @@ else
9078
# get mypy tests a nice cache
9179
MYPYPATH=".." mypy --config-file= --cache-dir=./.mypy_cache -c "import $PROJECT" >/dev/null 2>/dev/null || true
9280

93-
# support subprocess spawning with coverage.py
94-
# echo "import coverage; coverage.process_startup()" | tee -a "$INSTALLDIR/../sitecustomize.py"
95-
9681
echo "::endgroup::"
9782
echo "::group:: Run Tests"
9883
if coverage run --rcfile=../pyproject.toml -m pytest -ra --junitxml=../test-results.xml ../tests --verbose --durations=10 $flags; then

0 commit comments

Comments
 (0)