From 5c46de058205bbd8a2974bcfb778b0ad863794cd Mon Sep 17 00:00:00 2001 From: Paddy Mullen Date: Sat, 28 Dec 2024 12:21:58 -0500 Subject: [PATCH] tyring ui/playwright again --- .github/workflows/build.yml | 3 ++- .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ .github/workflows/deploy-ghpage.yml | 2 +- pyproject.toml | 2 ++ 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index d54de743..642070b4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,8 @@ on: push: branches: main pull_request: - branches: "*" + branches: "none-never" + jobs: build: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1ae07687..7d9c54d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,6 +70,32 @@ jobs: env: UV_PYTHON: ${{ matrix.python-version }} - uses: codecov/codecov-action@v5 + UITestPython: + needs: [TestPython] + name: Python / Test + runs-on: ubuntu-latest + strategy: + matrix: + python-version: + # - "3.8" #other conflicts + - "3.9" + #- "3.10" + #- "3.11" + #- "3.12" + steps: + - uses: actions/checkout@v4 + - uses: pnpm/action-setup@v4 + with: + run_install: true + - uses: astral-sh/setup-uv@v4 + with: + version: "0.5.x" + - name: Run tests + run: uv run playwright install chromium + run: SOLARA_TEST_RUNNERS=jupyter_lab uv run pytest tests/ui/ --video=retain-on-failure + #run: uv run --with pytest-cov pytest ./tests/ui --color=yes --cov anywidget --cov-report xml + env: + UV_PYTHON: ${{ matrix.python-version }} # LintJavaScript: # name: JavaScript / Lint diff --git a/.github/workflows/deploy-ghpage.yml b/.github/workflows/deploy-ghpage.yml index 8ac305e9..f105c694 100644 --- a/.github/workflows/deploy-ghpage.yml +++ b/.github/workflows/deploy-ghpage.yml @@ -6,7 +6,7 @@ on: - main pull_request: branches: - - '*' + - 'none-never' jobs: build: diff --git a/pyproject.toml b/pyproject.toml index 5fa224e4..cfa02011 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -54,6 +54,8 @@ dev-dependencies = [ "pydantic>=2.5.2", "pyarrow", "polars[timezone]", + "hypothesis>=6.88.1", + "nbval>=0.9" ]