Onclick #254
Workflow file for this run
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: Build | |
on: | |
push: | |
branches: main | |
pull_request: | |
branches: '*' | |
defaults: | |
run: | |
shell: bash -l {0} | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest] | |
python-version: ['3.8', '3.12'] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- name: Install build dependencies | |
run: python -m pip install build jupyterlab==4 | |
- name: Install yarn dependencies | |
run: | | |
jlpm install | |
jlpm run build | |
- name: Linting | |
run: jlpm run lint:check | |
- name: Build Python package | |
run: python -m build | |
- name: Upload builds | |
uses: actions/upload-artifact@v3 | |
with: | |
name: dist ${{ github.run_number }} | |
path: ./dist | |
build-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: mamba-org/setup-micromamba@v1 | |
with: | |
environment-file: docs/build-environment.yml | |
- name: Build | |
run: sphinx-build . output | |
working-directory: docs | |
visual-regression-tests: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: dist ${{ github.run_number }} | |
path: ./dist | |
- name: Install dependencies | |
run: python -m pip install jupyterlab==4 | |
- name: Install the package | |
run: pip install -vv ipyopenlayers*.whl | |
working-directory: dist | |
- name: Install dependencies | |
shell: bash -l {0} | |
working-directory: ui-tests | |
env: | |
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | |
run: jlpm install | |
- name: Install browser | |
shell: bash -l {0} | |
run: npx playwright install chromium | |
working-directory: ui-tests | |
- name: Execute integration tests | |
shell: bash -l {0} | |
working-directory: ui-tests | |
run: jlpm run test | |
- name: Upload Playwright Test report | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ipyopenlayers-playwright-tests | |
path: | | |
ui-tests/test-results | |
ui-tests/playwright-report |