diff --git a/.gitea/workflows/test_secret.yaml b/.gitea/workflows/test_secret.yaml index 52d383f..fa4a804 100644 --- a/.gitea/workflows/test_secret.yaml +++ b/.gitea/workflows/test_secret.yaml @@ -2,20 +2,25 @@ name: Test Gitea Secrets on: [push] jobs: - print-secret: + deploy-to-modal: runs-on: ubuntu-latest + # Use a standard python image so you don't have to pre-build anything container: - image: runner_setup-gitea_runner:latest + image: python:3.12-slim + steps: - name: Checkout code uses: actions/checkout@v4 - - name: Test modal worker pipeline - # All shell commands must be in the 'run' block + - name: Install Dependencies + run: | + apt-get update && apt-get install -y git + pip install modal + + - name: Deploy worker pipeline to Modal run: | - ls -d workspace/sprint_1_2/CODEBASE/deps/implementation cd workspace/sprint_1_2/CODEBASE/deps/implementation modal deploy test_worker.py env: - MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} - MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} \ No newline at end of file + MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }} + MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}