-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·33 lines (25 loc) · 899 Bytes
/
setup.sh
File metadata and controls
executable file
·33 lines (25 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env bash
set -euo pipefail
# CreditLab local setup script.
# Requires Python 3.11+. Run from the repo root.
REQUIRED_MINOR=11
python_version=$(python3 --version 2>&1 | awk '{print $2}')
minor=$(echo "$python_version" | cut -d. -f2)
if [ "$minor" -lt "$REQUIRED_MINOR" ]; then
echo "ERROR: Python 3.${REQUIRED_MINOR}+ required. Found: $python_version" >&2
exit 1
fi
echo "Python $python_version OK."
echo "Installing CreditLab in editable mode with dev extras..."
python3 -m pip install -e ".[dev]"
echo ""
echo "Verifying install..."
creditlab --help > /dev/null && echo "creditlab CLI: OK"
echo ""
echo "Running tests..."
python3 -m pytest tests/ -v
echo ""
echo "Setup complete."
echo " make smoke -- validate config + collect one run"
echo " make run-paper -- sweep all 6 paper conditions"
echo " make clean-data -- wipe experiment state for a fresh slate"