-
-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
20a3735
commit 5880397
Showing
8 changed files
with
2,358 additions
and
2,140 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,9 +28,7 @@ jobs: | |
- name: Install dependencies | ||
run: | | ||
pip install "jupyterlab>=4.0.0,<5" | ||
pip install -e . | ||
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc | ||
jlpm | ||
jlpm install | ||
- name: Run pre-commit | ||
uses: pre-commit/[email protected] | ||
|
@@ -55,6 +53,7 @@ jobs: | |
test-js: | ||
name: Test JavaScript | ||
runs-on: ubuntu-latest | ||
needs: [pre-commit] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
@@ -84,13 +83,14 @@ jobs: | |
test-py: | ||
name: Test Python | ||
needs: [pre-commit] | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 20 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, windows-latest, macos-latest] | ||
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] | ||
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | ||
# PyPy is not supported because we use the file_id_manager. See: | ||
# https://github.com/jupyter-server/jupyter_server_fileid/issues/44 | ||
#include: | ||
|
@@ -108,7 +108,7 @@ jobs: | |
run: | | ||
python -m pip install "jupyterlab>=4.0.0,<5" | ||
python -m pip install -e ".[test]" codecov | ||
python -m pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc | ||
python -m pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e "projects/jupyter-server-ydoc[test]" | ||
- name: List installed packages | ||
run: | | ||
|
@@ -148,7 +148,7 @@ jobs: | |
test_minimum_versions: | ||
name: Test Minimum Versions | ||
needs: [pre-commit, test-js, test-py] | ||
needs: [test-js, test-py] | ||
timeout-minutes: 20 | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
@@ -157,21 +157,21 @@ jobs: | |
- name: Base Setup | ||
uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | ||
with: | ||
python_version: "3.8" | ||
python_version: "3.9" | ||
dependency_type: minimum | ||
|
||
- name: Install the Python dependencies | ||
run: | | ||
pip install -e ".[test]" | ||
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc | ||
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e "projects/jupyter-server-ydoc[test]" | ||
- name: Run the unit tests | ||
run: | | ||
pytest -vv -W default || pytest -vv -W default --lf | ||
test_prereleases: | ||
name: Test Prereleases | ||
needs: [pre-commit, test-js, test-py] | ||
needs: [test-js, test-py] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 20 | ||
steps: | ||
|
@@ -184,7 +184,7 @@ jobs: | |
- name: Install the Python dependencies | ||
run: | | ||
pip install -e ".[test]" | ||
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e projects/jupyter-server-ydoc | ||
pip install -e projects/jupyter-collaboration-ui -e projects/jupyter-docprovider -e "projects/jupyter-server-ydoc[test]" | ||
- name: List installed packages | ||
run: | | ||
|
@@ -197,7 +197,7 @@ jobs: | |
make_sdist: | ||
name: Make SDist | ||
needs: [pre-commit, test-js, test-py] | ||
needs: [pre-commit] | ||
runs-on: ubuntu-latest | ||
timeout-minutes: 10 | ||
steps: | ||
|
@@ -269,16 +269,21 @@ jobs: | |
|
||
ui_tests: | ||
runs-on: ubuntu-latest | ||
needs: [pre-commit, test-js] | ||
needs: [make_sdist] | ||
timeout-minutes: 30 | ||
env: | ||
PLAYWRIGHT_BROWSERS_PATH: ${{ github.workspace }}/pw-browsers | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | ||
- name: Download sdist | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: "sdist" | ||
- name: Install dependencies | ||
run: | | ||
pip install jupyterlab . | ||
pip install jupyterlab jupyter_collaboration_ui*.tar.gz jupyter_docprovider*.tar.gz jupyter_server_ydoc*.tar.gz | ||
- name: Install playwright | ||
env: | ||
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: 1 | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
nodeLinker: node-modules | ||
enableImmutableInstalls: false |
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
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
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
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
Oops, something went wrong.