add some rough e2e tests #4
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 PR | |
on: | |
push: {} # TODO remove this once tested | |
pull_request: | |
branches: | |
- main | |
jobs: | |
cypress-run: | |
name: e2e | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Start Server | |
uses: devcontainers/[email protected] | |
with: | |
runCmd: uv sync --all-extras && uv run fastapi dev ./openday_scavenger/main.py | |
- name: Cypress run | |
uses: cypress-io/github-action@v6 | |
with: | |
working-directory: ./e2e |