Skip to content

Commit

Permalink
add ci-cd
Browse files Browse the repository at this point in the history
  • Loading branch information
gongy committed Jan 5, 2024
1 parent db47f71 commit 2ec6baf
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@v2

- name: Install Python
uses: actions/setup-python@v2
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 2ec6baf

Please sign in to comment.