-
Notifications
You must be signed in to change notification settings - Fork 122
46 lines (36 loc) · 1 KB
/
generate_client.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
---
name: Auto generate Client Code
on:
push:
branches: [main]
env:
POETRY_VERSION: "1.8.4"
jobs:
publish-to-pypi:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
uses: "./.github/actions/poetry_setup"
with:
python-version: "3.10"
poetry-version: ${{ env.POETRY_VERSION }}
working-directory: ${{ matrix.package.workdir }}
cache-key: release
- name: Install infinity
run: |
pip install libs/infinity_emb[all]
- name: Generate Client
working-directory: libs/client_infinity
run: |
./run_generate_with_hook.sh
- name: Test Generated Client
working-directory: libs/client_infinity
run:
./run_tets_with_hook.sh
- name: "Open a PR"
uses: peter-evans/create-pull-request@v7