Skip to content

Commit

Permalink
use jlpm to manage playwright/galata
Browse files Browse the repository at this point in the history
  • Loading branch information
ManonMarchand committed May 2, 2024
1 parent d22f641 commit 1567b1b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/js-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,24 +12,24 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: lts/*
node-version: "18.x"
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
- name: Install ipyaladin and jupyterlab
run: |
npm install
python -m pip install .
python -m pip install jupyterlab
sudo apt install chromium-browser -y
- name: Install Playwright
run: npx playwright install --with-deps
# Steps inspired from github.com/jupyterlab/extension-examples/blob/main/.github/workflows/main.yml
- name: Test jupyterlab browser
run: python -m jupyterlab.browser_check
- name: Install Playwright/Galata
working-directory: ./js/ui-tests
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1
run: jlpm install
- name: Install browser
run: jlpm playwright install chromium
working-directory: ./js/ui-tests
- name: Run Playwright tests
run: |
npm run start-test-server & npx playwright test
- uses: actions/upload-artifact@v4
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 10
run: jlpm playwright test

0 comments on commit 1567b1b

Please sign in to comment.