End-to-end Test #443
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: End-to-end Test | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: "17 9 * * *" | |
| jobs: | |
| e2etest: | |
| name: e2etest | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| - uses: ./.github/actions/setup | |
| - name: Run testing script | |
| env: | |
| MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} | |
| MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} | |
| MODAL_ENVIRONMENT: main | |
| run: | | |
| pip install -r requirements/requirements-dev.txt | |
| modal token set --token-id $MODAL_TOKEN_ID --token-secret $MODAL_TOKEN_SECRET | |
| modal serve -m src.app & | |
| python tests/e2e_test.py |