Skip to content

Commit

Permalink
Add Python standalone mount deployment back to CD pipeline (#2741)
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaskom authored Jan 9, 2025
1 parent 8f6b065 commit d3ea87d
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,36 @@ jobs:
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
run: twine upload dist/* --non-interactive

publish-python-standalone:
name: Publish Python standalone mounts
if: github.ref == 'refs/heads/main'
needs: [client-versioning, client-test, publish-client]
runs-on: ubuntu-20.04
timeout-minutes: 5
env:
MODAL_LOGLEVEL: DEBUG
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}

steps:
- uses: actions/checkout@v3
with:
ref: v${{ needs.client-versioning.outputs.client-version}}

- uses: ./.github/actions/setup-cached-python
with:
version: "3.11"

- name: Build protobuf
run: inv protoc

- name: Build client package (installs all dependencies)
run: pip install -e .

- name: Publish mounts
run: python -m modal_global_objects.mounts.python_standalone


publish-base-images:
name: |
Publish base images for ${{ matrix.image-name }} ${{ matrix.image-builder-version }}
Expand Down

0 comments on commit d3ea87d

Please sign in to comment.