fix for keeping py3.10 syntax compatibility #70
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: End to End Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
run: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python: ["3.10", "3.11", "3.12"] | |
defaults: | |
run: | |
shell: bash -l {0} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python ${{ matrix.python }} | |
uses: actions/[email protected] | |
with: | |
python-version: ${{ matrix.python }} | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
- name: Install dependencies | |
run: | | |
git clone https://github.com/progressivis/progressivis.git | |
cd progressivis | |
git submodule init | |
git submodule update --remote --merge | |
cd .. | |
python -m pip install ./progressivis # install progressivis | |
python -m pip install jupyterlab==4.0.0 | |
pushd js | |
yarn --frozen-lockfile | |
yarn run build | |
popd | |
python -m pip install -U ipywidgets | |
jupyter labextension disable "@jupyterlab/apputils-extension:announcements" | |
python -m pip install hatch | |
hatch build dist/ | |
python -m pip install dist/*.gz | |
- name: Start Jupyterlab | |
run: | | |
cd ui-tests/ | |
yarn --frozen-lockfile | |
yarn playwright install chromium | |
yarn run start:detached | |
- name: Wait for JupyterLab | |
uses: ifaxity/wait-on-action@v1 | |
with: | |
resource: http-get://localhost:8888/api | |
timeout: 20000 | |
- name: Run tests | |
run: | | |
cd ui-tests/ | |
yarn run test | |
- name: Update images | |
if: failure() | |
run: | | |
cd ui-tests/ | |
yarn run test:update | |
- name: Upload images | |
if: failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ipyprogressivis-updated-images | |
path: ui-tests/tests/end2end.test.ts-snapshots/ |