Skip to content

Commit 68c5424

Browse files
author
Richard Kuo (Onyx)
committed
first pass at making integration tests work
1 parent 7a93cab commit 68c5424

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/pr-integration-tests.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,37 @@ jobs:
2626
- name: Checkout code
2727
uses: actions/checkout@v4
2828

29+
- name: Setup Python
30+
uses: actions/setup-python@v5
31+
with:
32+
python-version: "3.11"
33+
cache: "pip"
34+
cache-dependency-path: |
35+
backend/requirements/default.txt
36+
backend/requirements/dev.txt
37+
backend/requirements/ee.txt
38+
- run: |
39+
python -m pip install --upgrade pip
40+
pip install --retries 5 --timeout 30 -r backend/requirements/default.txt
41+
pip install --retries 5 --timeout 30 -r backend/requirements/dev.txt
42+
pip install --retries 5 --timeout 30 -r backend/requirements/ee.txt
43+
44+
- name: Generate OpenAPI schema
45+
working-directory: ./backend
46+
run: |
47+
mkdir generated
48+
python onyx_openapi_schema.py --filename generated/openapi.json
49+
50+
- name: Generate OpenAPI Python client
51+
working-directory: ./backend
52+
run: |
53+
docker run --rm \
54+
-v generated:/local openapitools/openapi-generator-cli generate \
55+
-i /local/openapi.json \
56+
-g python \
57+
-o onyx_openapi_client \
58+
--package-name onyx_openapi_client
59+
2960
- name: Set up Docker Buildx
3061
uses: docker/setup-buildx-action@v3
3162

0 commit comments

Comments
 (0)