Skip to content

Commit 0ebcec4

Browse files
committed
Added autoscaling tests.
1 parent 2d79755 commit 0ebcec4

File tree

6 files changed

+1135
-0
lines changed

6 files changed

+1135
-0
lines changed

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,14 @@ jobs:
4949
steps:
5050
- uses: actions/checkout@v5
5151

52+
- uses: actions/setup-python@v5
53+
with:
54+
python-version: '3.11'
55+
56+
- name: Install Python dependencies
57+
run: |
58+
pip install pytest pytest-timeout requests
59+
5260
- name: Start K3s cluster
5361
uses: jupyterhub/action-k3s-helm@v4
5462
with:
@@ -99,11 +107,21 @@ jobs:
99107
echo "=== Post-deployment validation ==="
100108
./scripts/test.sh check-deployment
101109
110+
- name: Install Python dependencies
111+
run: |
112+
python -m pip install --upgrade pip
113+
pip install pytest requests psycopg2-binary
114+
102115
- name: Run integration tests
103116
run: |
104117
export RELEASE_NAME="$RELEASE_NAME"
105118
./scripts/test.sh integration --debug
106119
120+
- name: Run autoscaling tests
121+
run: |
122+
export RELEASE_NAME="$RELEASE_NAME"
123+
python -m pytest .github/workflows/tests/test_autoscaling.py -v --tb=short -m "not slow"
124+
107125
- name: Debug failed deployment
108126
if: failure()
109127
run: |

0 commit comments

Comments
 (0)