File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 26
26
- name : Checkout code
27
27
uses : actions/checkout@v4
28
28
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
+
29
60
- name : Set up Docker Buildx
30
61
uses : docker/setup-buildx-action@v3
31
62
You can’t perform that action at this time.
0 commit comments