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 414142c commit 7d5a6f9
Showing 1 changed file with 10 additions and 24 deletions.
34 changes: 10 additions & 24 deletions .github/workflows/run-app-end-to-end-deployed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,30 +5,7 @@ on:
pull_request:
branches: [main, master]
jobs:
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 @@ -42,7 +19,16 @@ jobs:
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Install dependencies
- uses: actions/setup-python@v2
with:
python-version: 3.12
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run FastApi
run: uvicorn main:app &
- name: Install JS dependencies
run: pnpm install --frozen-lockfile
- name: Install Playwright
run: npx playwright install --with-deps
Expand Down

1 comment on commit 7d5a6f9

@vercel
Copy link

@vercel vercel bot commented on 7d5a6f9 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.