-
Notifications
You must be signed in to change notification settings - Fork 34
39 lines (32 loc) · 1.03 KB
/
Copy pathmodal-deploy.yml
File metadata and controls
39 lines (32 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: CI/CD
on:
push:
branches:
- main
- dev
jobs:
deploy:
name: Modal Deployment
runs-on: ubuntu-latest
environment: ${{ github.ref == 'refs/heads/dev' && 'kernelbotdev' || '' }}
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Install Modal
run: |
python -m pip install --upgrade pip
pip install "modal>=1.5.0"
- name: Warm Torch header cache
run: |
PYTHONPATH=${{ github.workspace }}/src:${{ github.workspace }}/src/runners modal run src/runners/modal_runner.py::warm_pch
- name: Deploy job
run: |
# TODO: Remove pythonpath here
PYTHONPATH=${{ github.workspace }}/src:${{ github.workspace }}/src/runners modal deploy src/runners/modal_runner_archs.py