77 steps :
88 - checkout
99 - run :
10- name : Install dependencies
10+ name : Install Git
11+ command : |
12+ apt-get update && apt-get install -y git
13+ - run :
14+ name : Install uv
1115 command : |
1216 pip install uv
13- uv venv --python 3.10
17+ - restore_cache :
18+ keys :
19+ - uv-cache-pytest-{{ checksum "uv.lock" }}
20+ - uv-cache-pytest-
1421 - run :
1522 name : Run pytest
1623 no_output_timeout : 20m
1724 command : |
18- source .venv/bin/activate
19- uv pip install -e '.[dev,aws,spark]'
25+ uv sync --group dev --group aws --group spark
2026 export GIT_PYTHON_REFRESH=quiet
21- pytest -k "not test_autonlinear_longer_horizon"
27+ uv run pytest -k "not test_autonlinear_longer_horizon" --no-cov
28+ - save_cache :
29+ key : uv-cache-pytest-{{ checksum "uv.lock" }}
30+ paths :
31+ - ~/.cache/uv
32+ - .venv
2233 test-model-performance :
2334 resource_class : xlarge
2435 docker :
2536 - image : python:3.10-slim
2637 steps :
2738 - checkout
2839 - run :
29- name : Install dependencies
40+ name : Install Git
41+ command : |
42+ apt-get update && apt-get install -y git
43+ - run :
44+ name : Install uv
3045 command : |
3146 pip install uv
32- uv venv --python 3.10
47+ - restore_cache :
48+ keys :
49+ - uv-cache-perf-{{ checksum "uv.lock" }}
50+ - uv-cache-perf-
3351 - run :
3452 name : Run model performance tests
3553 command : |
36- source .venv/bin/activate
37- uv pip install -e '.[dev,aws,spark]'
38- cd ./action_files/test_models/
39- uv pip install -r requirements.txt
40- python -m src.models
41- python -m src.evaluation
42- cd ../../
54+ uv sync --group dev --group aws --group spark
55+ uv pip install -r ./action_files/test_models/requirements.txt
56+ export PYTHONPATH="${PYTHONPATH}:./action_files/test_models"
57+ uv run python -m src.models
58+ uv run python -m src.evaluation
59+ - save_cache :
60+ key : uv-cache-perf-{{ checksum "uv.lock" }}
61+ paths :
62+ - ~/.cache/uv
63+ - .venv
4364 - store_artifacts :
4465 path : ./action_files/test_models/data/evaluation.csv
4566 destination : evaluation.csv
@@ -50,20 +71,30 @@ jobs:
5071 steps :
5172 - checkout
5273 - run :
53- name : Install dependencies
74+ name : Install Git
75+ command : |
76+ apt-get update && apt-get install -y git
77+ - run :
78+ name : Install uv
5479 command : |
5580 pip install uv
56- uv venv --python 3.10
81+ - restore_cache :
82+ keys :
83+ - uv-cache-perf-{{ checksum "uv.lock" }}
84+ - uv-cache-perf-
5785 - run :
5886 name : Run model performance tests
5987 command : |
60- source .venv/bin/activate
61- uv pip install -e '.[dev,aws,spark]'
62- cd ./action_files/test_models/
63- uv pip install -r requirements.txt
64- python -m src.models2
65- python -m src.evaluation2
66- cd ../../
88+ uv sync --group dev --group aws --group spark
89+ uv pip install -r ./action_files/test_models/requirements.txt
90+ export PYTHONPATH="${PYTHONPATH}:./action_files/test_models"
91+ uv run python -m src.models2
92+ uv run python -m src.evaluation2
93+ - save_cache :
94+ key : uv-cache-perf-{{ checksum "uv.lock" }}
95+ paths :
96+ - ~/.cache/uv
97+ - .venv
6798 - store_artifacts :
6899 path : ./action_files/test_models/data/evaluation.csv
69100 destination : evaluation.csv
@@ -74,20 +105,30 @@ jobs:
74105 steps :
75106 - checkout
76107 - run :
77- name : Install dependencies
108+ name : Install Git
109+ command : |
110+ apt-get update && apt-get install -y git
111+ - run :
112+ name : Install uv
78113 command : |
79114 pip install uv
80- uv venv --python 3.10
115+ - restore_cache :
116+ keys :
117+ - uv-cache-perf-{{ checksum "uv.lock" }}
118+ - uv-cache-perf-
81119 - run :
82120 name : Run model performance tests
83121 command : |
84- source .venv/bin/activate
85- uv pip install -e '.[dev,aws,spark]'
86- cd ./action_files/test_models/
87- uv pip install -r requirements.txt
88- python -m src.multivariate_models
89- python -m src.multivariate_evaluation
90- cd ../../
122+ uv sync --group dev --group aws --group spark
123+ uv pip install -r ./action_files/test_models/requirements.txt
124+ export PYTHONPATH="${PYTHONPATH}:./action_files/test_models"
125+ uv run python -m src.multivariate_models
126+ uv run python -m src.multivariate_evaluation
127+ - save_cache :
128+ key : uv-cache-perf-{{ checksum "uv.lock" }}
129+ paths :
130+ - ~/.cache/uv
131+ - .venv
91132 - store_artifacts :
92133 path : ./action_files/test_models/data/multi_evaluation.csv
93134 destination : multi_evaluation.csv
0 commit comments