Skip to content

Commit b17b588

Browse files
authored
Merge pull request #524 from michaelfeil/version-check-step
Version check step
2 parents f50e3da + 5fc2359 commit b17b588

File tree

2 files changed

+44
-1
lines changed

2 files changed

+44
-1
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Auto generate Client Code
2+
3+
on:
4+
push:
5+
branches: [main]
6+
7+
env:
8+
POETRY_VERSION: "1.8.4"
9+
10+
jobs:
11+
generate-client:
12+
runs-on: ubuntu-latest
13+
permissions:
14+
contents: write
15+
pull-requests: write
16+
17+
steps:
18+
- name: Checkout code
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Python + Poetry ${{ env.POETRY_VERSION }}
22+
uses: "./.github/actions/poetry_setup"
23+
with:
24+
python-version: "3.10"
25+
poetry-version: ${{ env.POETRY_VERSION }}
26+
cache-key: client-generation
27+
28+
- name: Install infinity
29+
run: |
30+
pip install libs/infinity_emb[all]
31+
32+
- name: Generate Client
33+
working-directory: libs/client_infinity
34+
run: |
35+
./run_generate_with_hook.sh
36+
37+
- name: Test Generated Client
38+
working-directory: libs/client_infinity
39+
run: |
40+
./run_tests_with_hook.sh
41+
42+
- name: Open a PR
43+
uses: peter-evans/create-pull-request@v7

.github/workflows/pypi_release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ jobs:
5858
modal-deploy:
5959
needs: publish-to-pypi
6060
uses: ./.github/workflows/release_modal_com.yaml
61-
secrets: inherit
61+
secrets: inherit

0 commit comments

Comments
 (0)