Skip to content

Commit

Permalink
modify github workflow to run playwright
Browse files Browse the repository at this point in the history
  • Loading branch information
sashankaryal committed Jul 13, 2023
1 parent 0426282 commit c200233
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 9 deletions.
26 changes: 17 additions & 9 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ on: workflow_call

jobs:
test-e2e:
timeout-minutes: 30
runs-on: ubuntu-latest
env:
FIFTYONE_DO_NOT_TRACK: true
Expand All @@ -13,9 +14,10 @@ jobs:
shell: bash
steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v3
with:
submodules: true
node-version: 16

- name: Set up Python 3.8
uses: actions/setup-python@v4
Expand Down Expand Up @@ -65,16 +67,22 @@ jobs:
- name: FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v2

- name: Run e2e tests
run: |
FIFTYONE_DATABASE_NAME=cypress python ../fiftyone/server/main.py --address 0.0.0.0 --port 8787 &
yarn install
yarn start
- name: Install E2E dependencies
run: yarn
working-directory: ./e2e

- name: Install Playwright browsers
run: yarn playwright install --with-deps
working-directory: ./e2e

- name: Run Playwright tests
run: yarn e2e
working-directory: ./e2e

- name: Upload snapshots
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: snapshots
path: e2e/cypress/snapshots/actual
name: playwright-report
path: playwright-report/
retention-days: 30
File renamed without changes.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

**/*.DS_store
.vscode
node_modules

__pycache__
*.py[cod]
Expand Down

0 comments on commit c200233

Please sign in to comment.