Skip to content

Commit

Permalink
Add Windows workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
trungleduc committed Jan 30, 2024
1 parent 075cd58 commit 9f94b08
Showing 1 changed file with 28 additions and 4 deletions.
32 changes: 28 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,21 @@ jobs:
integration-tests:
name: Integration tests
needs: build
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
shell: ['bash -l {0}', 'powershell']
exclude:
- os: ubuntu-latest
shell: powershell
- os: windows-latest
shell: bash -l {0}
runs-on: ${{matrix.os}}

defaults:
run:
shell: ${{matrix.shell}}

env:
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers
Expand All @@ -219,9 +233,6 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Base Setup
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1

- name: Download extension package
uses: actions/download-artifact@v3
with:
Expand All @@ -231,14 +242,27 @@ jobs:
uses: mamba-org/setup-micromamba@v1
with:
environment-name: test-env
init-shell: >-
bash
powershell
create-args: >-
pip
python-libarchive-c
- name: Install the extension
if: matrix.os == 'ubuntu-latest'
run: |
set -eux
python -m pip install "jupyterlab>=4.0.0,<5" jupyterlite jupyterlite_xeus*.whl
- name: Install the extension
if: matrix.os == 'windows-latest'
run: |
micromamba info
where.exe python
python -m pip install "jupyterlab>=4.0.0,<5" jupyterlite
Get-ChildItem -Filter *.whl | ForEach-Object { python -m pip install $_.FullName }
- name: Install dependencies
working-directory: ui-tests
env:
Expand Down

0 comments on commit 9f94b08

Please sign in to comment.