Skip to content

Commit

Permalink
add api container
Browse files Browse the repository at this point in the history
  • Loading branch information
jimbonothing64 committed Dec 12, 2023
1 parent 9417a41 commit 414142c
Showing 1 changed file with 25 additions and 2 deletions.
27 changes: 25 additions & 2 deletions .github/workflows/run-app-end-to-end-deployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,30 @@ on:
pull_request:
branches: [main, master]
jobs:
test:
start_api:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
strategy:
matrix:
python-version: [3.12]

steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run FastApi
run: uvicorn main:app
test_e2e:
needs: start_api
timeout-minutes: 10
runs-on: ubuntu-latest
defaults:
Expand All @@ -26,7 +49,7 @@ jobs:
- name: Build Sveltekit
run: pnpm run build
env:
API_URL: https://minimise-python-tutor-usb1.vercel.app/
API_URL: http://localhost:8000/
- name: Start Sveltekit server
run: pnpm run preview &
- name: Wait for Sveltekit to start
Expand Down

1 comment on commit 414142c

@vercel
Copy link

@vercel vercel bot commented on 414142c Dec 12, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.