Skip to content

Commit

Permalink
Merge pull request #524 from michaelfeil/version-check-step
Browse files Browse the repository at this point in the history
Version check step
  • Loading branch information
wirthual authored Feb 3, 2025
2 parents f50e3da + 5fc2359 commit b17b588
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 1 deletion.
43 changes: 43 additions & 0 deletions .github/workflows/generate_client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Auto generate Client Code

on:
push:
branches: [main]

env:
POETRY_VERSION: "1.8.4"

jobs:
generate-client:
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 }}
cache-key: client-generation

- 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_tests_with_hook.sh
- name: Open a PR
uses: peter-evans/create-pull-request@v7
2 changes: 1 addition & 1 deletion .github/workflows/pypi_release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ jobs:
modal-deploy:
needs: publish-to-pypi
uses: ./.github/workflows/release_modal_com.yaml
secrets: inherit
secrets: inherit

0 comments on commit b17b588

Please sign in to comment.