Updating Documentation for Contributing steps #20
Workflow file for this run
This file contains hidden or 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: Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - '*' | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| ui-tests: | |
| name: ui-tests | |
| runs-on: ubuntu-latest | |
| env: | |
| PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Base Setup | |
| uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
| - name: Install the extension | |
| run: | | |
| set -eux | |
| pip install "jupyterlab>=4.4.0,<5" | |
| pip install -e ".[test]" | |
| - name: Install tests 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@v4 | |
| 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 integration tests | |
| working-directory: ui-tests | |
| run: | | |
| jlpm test --retries=2 | |
| - name: Upload Playwright Test report | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: jupyterlab-diff-ui-tests-report-${{ github.run_id }} | |
| path: | | |
| ui-tests/test-results | |
| ui-tests/playwright-report |