investigating playwright browser installation #40
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: Build | |
on: | |
pull_request: | |
paths-ignore: | |
- "docs/**" | |
push: | |
paths-ignore: | |
- "docs/**" | |
branches-ignore: | |
- "dependabot/**" | |
- "pre-commit-ci-update-config" | |
workflow_dispatch: | |
# Tags are calculated based on the existing tags in the repository | |
# so we can only run builds consecutively, otherwise two images in | |
# different builds may have the same tag. | |
# If there are multiple pending jobs older pending jobs will be cancelled. | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
env: | |
# If we're on this branch don't bother fetching every tag since we know | |
# this will be the most recent tag, i.e. builds on this branch should always | |
# update the `latest` tag | |
LATEST_BRANCH: main | |
# Only push images if this workflow is run on this branch | |
# This ensures if a a new branch is created in this repo it won't automatically | |
# push an image. | |
# If this is a backport then change this to the name of the backports branch | |
PUBLISH_BRANCH: main | |
# IMAGE: jupyterhub/jupyterhub | |
IMAGE: manics/jupyterhub-image-test | |
SINGLEUSER: manics/jupyterhub-singleuser-image-test | |
PUBLISH_DOCKERIO: "false" | |
# Enable caching across builds, set to "" to disable | |
CACHE_FROM: type=gha | |
CACHE_TO: type=gha,mode=max | |
permissions: | |
contents: read | |
jobs: | |
debug-playwright: | |
runs-on: ubuntu-24.04 | |
timeout-minutes: 5 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.13" | |
cache: pip | |
cache-dependency-path: tests/dev-requirements.txt | |
- name: Install test dependencies | |
run: | | |
python -mpip install -r tests/dev-requirements.txt | |
python -mplaywright install chromium | |
- name: Test demo image # zizmor: ignore[template-injection] | |
run: | | |
python -mpytest | |
DEMO_IMAGE=quay.io/jupyterhub/jupyterhub-demo | |
docker run -d --name hub -p8000:8000 "$DEMO_IMAGE" | |
sleep 5 | |
docker logs hub | |
python -mpytest |