Skip to content

Commit 60aea76

Browse files
committed
add ci/cd integration
1 parent 700b742 commit 60aea76

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

.github/workflows/ci_cd.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,4 +21,9 @@ jobs:
2121
needs: ci # wait for build to complete before running
2222
uses: ./.github/workflows/cd_kubernetes.yml
2323
secrets: # Pass KUBECONFIG to called workflow
24-
KUBECONFIG: ${{ secrets.KUBECONFIG }}
24+
KUBECONFIG: ${{ secrets.KUBECONFIG }}
25+
26+
integration_tests:
27+
name: Integration Tests
28+
needs: cd_kubernetes # wait for deployment to complete before running
29+
uses: ./.github/workflows/integration_tests.yml
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Integration Tests
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
genai-tests:
8+
runs-on: ubuntu-latest
9+
env:
10+
GATEWAY_BASE_URL: api.meetatmensa.com
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v3
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v4
17+
with:
18+
python-version: '3.11'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r server/genai/requirements.txt
24+
pip install pytest
25+
26+
- name: Run GenAI tests
27+
run: PYTHONPATH=server/genai pytest -v

0 commit comments

Comments
 (0)