update the workflows test
Some checks failed
Test Gitea Secrets / deploy-to-modal (push) Failing after 25s

This commit is contained in:
DatTT127
2026-07-16 23:28:23 +07:00
parent f67fb7a135
commit 1e6953d5a1

View File

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