File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ SAM_CLI_TELEMETRY ?= 0
66
77# Initialize environment specifically for Github action tests using uv
88init :
9- @ if [ " $$ GITHUB_ACTIONS" = " true" ]; then \
9+ if [ " $$ GITHUB_ACTIONS" = " true" ]; then \
1010 command -v uv > /dev/null 2>&1 || pip install uv==0.9.1; \
1111 echo " === UV_PYTHON resolved to: $$ (uv python find $$ UV_PYTHON) ===" ; \
1212 SAM_CLI_DEV=1 uv pip install --system --break-system-packages --python " $$ (uv python find $$ UV_PYTHON)" -e ' .[dev]' ; \
Original file line number Diff line number Diff line change 11#! /bin/bash
22# Set up a pytest venv with test dependencies (cross-platform).
33# Also exports SCRIPT_PY to GITHUB_ENV and adds Scripts dir to GITHUB_PATH on Windows.
4- set -euo pipefail
4+ set -eo pipefail
55
6- echo " === UV_PYTHON resolved to: $( uv python find $UV_PYTHON ) ==="
6+ echo " === UV_PYTHON resolved to: $( uv python find ${ UV_PYTHON:- 3.11} ) ==="
77
8- if [ " ${RUNNER_OS:- } " = " Windows" ]; then
8+ if [ " ${RUNNER_OS:- } " == " Windows" ] || [[ " $( uname -s ) " == MINGW * ]] || [[ " $( uname -s ) " == MSYS * ] ]; then
99 python3 -m venv " $HOME /pytest"
1010 VENV_PY=" $HOME /pytest/Scripts/python.exe"
1111 SAM_CLI_DEV=1 uv pip install --python " $VENV_PY " -e ' .[dev]'
You can’t perform that action at this time.
0 commit comments