e2e test #50
This file contains 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: e2e test | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "17 9 * * *" | |
jobs: | |
test: | |
name: e2etest | |
runs-on: ubuntu-latest | |
env: | |
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }} | |
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }} | |
MODAL_ENVIRONMENT: vishy-dev | |
PUBLIC_BACKEND_URL: https://modal-labs-vishy-dev--seamless-chat-seamlessm4t-asgi-app-dev.modal.run | |
steps: | |
- name: checkout repo | |
uses: actions/checkout@v4 | |
- name: setup dependencies | |
uses: ./.github/actions/setup | |
- name: build frontend | |
working-directory: frontend | |
run: npm run build | |
- name: run tests | |
run: | | |
pip install -r tests/requirements.txt | |
modal serve seamless.py & | |
sleep 20 | |
pytest tests/tests.py |