From 9ac671bee0e4add62941bbda77fc7eb2ba182e51 Mon Sep 17 00:00:00 2001 From: Ruben Fiszel Date: Thu, 3 Nov 2022 08:32:43 +0100 Subject: [PATCH] update python-client-builder --- .github/DockerfilePypiBuilder | 7 +++++++ .github/workflows/pypi_on_release.yml | 6 +++--- python-client/.gitignore | 2 +- python-client/windmill-api/.gitignore | 2 +- 4 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .github/DockerfilePypiBuilder diff --git a/.github/DockerfilePypiBuilder b/.github/DockerfilePypiBuilder new file mode 100644 index 0000000000..2c0a20d392 --- /dev/null +++ b/.github/DockerfilePypiBuilder @@ -0,0 +1,7 @@ +FROM nikolaik/python-nodejs:python3.11-nodejs19 + +RUN python3 -m pip install pipx poetry +RUN python3 -m pipx ensurepath +ENV PATH="/root/.local/bin:${PATH}" +ENV PATH="/usr/local/bin:${PATH}" +RUN pipx install openapi-python-client==0.11.6 --include-deps \ No newline at end of file diff --git a/.github/workflows/pypi_on_release.yml b/.github/workflows/pypi_on_release.yml index 20adbfc8b1..af7a11e5fb 100644 --- a/.github/workflows/pypi_on_release.yml +++ b/.github/workflows/pypi_on_release.yml @@ -11,7 +11,9 @@ on: jobs: publish_pypi: - runs-on: [self-hosted, new] + runs-on: ubuntu-latest + container: + image: ghcr.io/windmill-labs/python-client-builder steps: - uses: actions/checkout@v3 - name: Upload python client @@ -19,8 +21,6 @@ jobs: PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }} run: | cd python-client - export PATH=$PATH:/usr/local/bin - export PATH=$PATH:/root/.local/bin ./publish.sh publish_lsp: diff --git a/python-client/.gitignore b/python-client/.gitignore index 75ed8f3391..9ebe53e2f3 100644 --- a/python-client/.gitignore +++ b/python-client/.gitignore @@ -1,4 +1,4 @@ openapi-deref.yaml dist/ __pycache__/ -openapi.yaml +windmill-api/ diff --git a/python-client/windmill-api/.gitignore b/python-client/windmill-api/.gitignore index ed29cb9779..79a2c3d73c 100644 --- a/python-client/windmill-api/.gitignore +++ b/python-client/windmill-api/.gitignore @@ -20,4 +20,4 @@ dmypy.json .idea/ /coverage.xml -/.coverage \ No newline at end of file +/.coverage