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

This commit is contained in:
DatTT127
2026-07-16 23:59:43 +07:00
parent 7b9db01f2a
commit 2635ddfe8f
2 changed files with 3 additions and 5 deletions

View File

@@ -4,9 +4,8 @@ on: [push]
jobs: jobs:
deploy-to-modal: 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: gitea-modal-runner:latest image: gitea-modal-runner:latest
steps: steps:
- name: Checkout code - name: Checkout code
@@ -17,5 +16,6 @@ jobs:
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:
# These are injected by Gitea Actions from the Repository Secrets
MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }} MODAL_TOKEN_ID: ${{ secrets.MODAL_KEY }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }} MODAL_TOKEN_SECRET: ${{ secrets.MODAL_SECRET }}

View File

@@ -26,5 +26,3 @@ COPY --from=builder /root/.local /root/.local
# Ensure the local bin is in the PATH # Ensure the local bin is in the PATH
ENV PATH=/root/.local/bin:$PATH ENV PATH=/root/.local/bin:$PATH
# WORKDIR /workspace
CMD [ "bash" ]