27 lines
701 B
YAML
27 lines
701 B
YAML
name: Test Gitea Secrets
|
|
on: [push]
|
|
|
|
jobs:
|
|
deploy-to-modal:
|
|
runs-on: ubuntu-latest
|
|
# Use a standard python image so you don't have to pre-build anything
|
|
container:
|
|
image: python:3.12-slim
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install Dependencies
|
|
run: |
|
|
apt-get update && apt-get install -y git
|
|
pip install modal
|
|
|
|
- name: Deploy worker pipeline to Modal
|
|
run: |
|
|
cd workspace/sprint_1_2/CODEBASE/deps/implementation
|
|
modal deploy test_worker.py
|
|
env:
|
|
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
|
|
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}
|