Skip to content

End-to-end Test

End-to-end Test #34

Workflow file for this run

name: End-to-end Test
on:
push:
branches:
- main
pull_request:
workflow_dispatch:
schedule:
- cron: "17 9 * * *"
jobs:
e2etest:
name: e2etest
runs-on: ubuntu-20.04
env:
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
MODAL_ENVIRONMENT: main
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 1
- uses: ./.github/actions/setup
- name: Run testing script
run: |
pip install -r requirements/requirements-dev.txt
modal token set --token-id $MODAL_TOKEN_ID --token-secret $MODAL_TOKEN_SECRET
modal serve src.app &
python tests/e2e_test.py