Skip to content

Commit

Permalink
Merge pull request #24 from modal-labs/richard/add-ci-cd
Browse files Browse the repository at this point in the history
add ci-cd
  • Loading branch information
gongy committed Jan 5, 2024
2 parents 412af1e + 2ec6baf commit ce12b85
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI/CD

on: workflow_dispatch

jobs:
test:
environment: CI
name: Deploy
runs-on: ubuntu-latest
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
MODAL_ENVIRONMENT: ci-cd

steps:
- name: Checkout Repository
uses: actions/checkout@v4

- name: Install Python
uses: actions/setup-python@v5
with:
python-version: "3.10"

- name: Install Modal
run: |
python -m pip install --upgrade pip
pip install modal
- name: Run training job on Modal
run: |
modal run src.train.py

0 comments on commit ce12b85

Please sign in to comment.