clean-up widget GraphObservers #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test | |
on: [push] | |
#on: | |
# push: | |
# branches: main | |
# pull_request: | |
# branches: '*' | |
jobs: | |
integration-tests: | |
name: Playwright UI tests | |
runs-on: ubuntu-latest | |
env: | |
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Base Setup | |
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install ogdf-python | |
run: | | |
set -eux | |
python -m pip install .[quickstart] | |
- name: Install test dependencies | |
working-directory: ui-tests | |
env: | |
YARN_ENABLE_IMMUTABLE_INSTALLS: 0 | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
run: jlpm install | |
- name: Set up browser cache | |
uses: actions/cache@v3 | |
with: | |
path: | | |
${{ github.workspace }}/pw-browsers | |
key: ${{ runner.os }}-${{ hashFiles('ui-tests/yarn.lock') }} | |
- name: Install browser | |
run: jlpm playwright install chromium | |
working-directory: ui-tests | |
- name: Execute playwright tests | |
working-directory: ui-tests | |
run: | | |
jlpm playwright test | |
- name: Upload playwright test report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: playwright-tests | |
path: | | |
ui-tests/test-results | |
ui-tests/playwright-report |