Skip to content

Commit cdeba70

Browse files
authored
trying using venv to fix alpine issue (#488)
* trying using venv to fix alpine issue * add python3-venv
1 parent 3032121 commit cdeba70

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -428,7 +428,7 @@ jobs:
428428
if command -v apt-get &> /dev/null; then
429429
echo "installing python & pip with apt-get..."
430430
apt-get update
431-
apt-get install -y --no-install-recommends python3 python3-pip
431+
apt-get install -y --no-install-recommends python3 python3-pip python3-venv
432432
else
433433
echo "installing python & pip with apk..."
434434
apk update
@@ -439,7 +439,9 @@ jobs:
439439
# this is required so that pytest uses the installed pydantic-core package
440440
rm -r pydantic_core
441441
# typing-extensions isn't automatically installed because of `--no-index --no-deps`
442-
python3 -m pip install typing-extensions
442+
python3 -m venv venv
443+
source venv/bin/activate
444+
python3 -m pip install -U pip typing-extensions
443445
python3 -m pip install -r tests/requirements.txt
444446
python3 -m pip install pydantic-core --no-index --no-deps --find-links dist --force-reinstall
445447
python3 -m pytest --ignore=tests/test_docstrings.py

0 commit comments

Comments
 (0)