Skip to content

Commit

Permalink
Feat/playwright testing (#131)
Browse files Browse the repository at this point in the history
playwright and solara now do a full end to end integration test of buckaroo in jupyterlab, with screenshotting ability !
* Fixes Browser <> Jupyter lab Integration tests for buckaroo #116 
* Bump to 0.4.5
  • Loading branch information
paddymul authored Nov 12, 2023
1 parent af0c296 commit 1fbf4ab
Show file tree
Hide file tree
Showing 19 changed files with 605 additions and 7 deletions.
47 changes: 45 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
matrix:
#os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
python-version: ["3.8", "3.11"]
python-version: ["3.8"]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -31,14 +31,27 @@ jobs:
- name: Test the extension
run: |
python -m pip install --upgrade -v -e ".[test, examples, docs]"
python -m pytest
python -m pytest tests/unit
yarn run test
- name: Linting
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
yarn run lint:check
- name: Package
run: |
python -m pip install build
python -m build .
- name: Upload builds
uses: actions/upload-artifact@v3
with:
name: buckaroo-dist-${{ github.run_number }}
path: |
./dist
./js/*.tgz
- name: Check docs can be build + links
if: ${{ matrix.os == 'ubuntu-latest' }}
working-directory: docs
Expand All @@ -47,3 +60,33 @@ jobs:
pip install pytest-check-links
make html
python -m pytest --check-links
ui-test:
needs: [build]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/download-artifact@v3
with:
name: buckaroo-dist-${{ github.run_number }}

- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.8

- name: Setup buckaroo ui test
run: pip install `echo dist/*.whl`[ui-test] -r requirements-ui-test.txt

- name: Install playwright browsers
run: playwright install chromium

- name: Run ui-tests
run: SOLARA_TEST_RUNNERS=jupyter_lab pytest tests/ui/ --video=retain-on-failure

- name: Upload Test artifacts
if: always()
uses: actions/upload-artifact@v2
with:
name: buckaroo-test-results-${{ github.run_number }}
path: test-results
2 changes: 1 addition & 1 deletion buckaroo/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Paddy Mullen.
# Distributed under the terms of the Modified BSD License.

__version__ = "0.4.4"
__version__ = "0.4.5"
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "buckaroo",
"version": "0.4.4",
"version": "0.4.5",
"description": "Fast Datagrid widget for the Jupyter Notebook and JupyterLab",
"keywords": [
"jupyter",
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ dependencies = [
"ipywidgets>=7.6.0,<9",
"graphlib_backport>=1.0.0"
]
version = "0.4.4"
version = "0.4.5"

[project.license]
file = "LICENSE.txt"
Expand All @@ -59,7 +59,8 @@ docs = [

build = [
"twine",
"build"
"build",
"tbump"
]

[project.urls]
Expand Down Expand Up @@ -137,7 +138,7 @@ field = [
]

[tool.tbump.version]
current = "0.2.2"
current = "0.4.5"
regex = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)((?P<channel>a|b|rc|.dev)(?P<release>\\d+))?"

[tool.tbump.git]
Expand Down
Loading

0 comments on commit 1fbf4ab

Please sign in to comment.