Skip to content

Commit ee9563c

Browse files
committed
test
1 parent 478a32d commit ee9563c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ SAM_CLI_TELEMETRY ?= 0
66

77
# Initialize environment specifically for Github action tests using uv
88
init:
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]'; \

tests/setup-pytest.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
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]'

0 commit comments

Comments
 (0)