diff --git a/.github/workflows/e2e.yml b/.github/workflows/e2e.yml new file mode 100644 index 0000000..22fbd47 --- /dev/null +++ b/.github/workflows/e2e.yml @@ -0,0 +1,35 @@ +name: Release (e2e) + +on: + pull_request: + types: [ labeled ] + +jobs: + release: + name: Release (e2e) + if: ${{ github.event.label.name == 'e2e' }} + runs-on: ubuntu-latest + env: + MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} + MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.10" + - uses: abatilo/actions-poetry@v2 + + - name: Install dependencies + run: poetry install --no-root + + - name: Deploy + run: | + cd modal + poetry run modal config set-environment e2e + + echo "Downloading models..." + poetry run modal run runner::download + + echo "Deploying..." + poetry run modal deploy runner