From 7d5a6f9addf9b83bfaf0bd5bef0075ca9baca82f Mon Sep 17 00:00:00 2001 From: James Napier Date: Tue, 12 Dec 2023 17:45:59 +1300 Subject: [PATCH] add api container --- .../workflows/run-app-end-to-end-deployed.yml | 34 ++++++------------- 1 file changed, 10 insertions(+), 24 deletions(-) diff --git a/.github/workflows/run-app-end-to-end-deployed.yml b/.github/workflows/run-app-end-to-end-deployed.yml index c1da2b3..4528482 100644 --- a/.github/workflows/run-app-end-to-end-deployed.yml +++ b/.github/workflows/run-app-end-to-end-deployed.yml @@ -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: @@ -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