-
Notifications
You must be signed in to change notification settings - Fork 317
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1588 from brichet/jupyterlab_extensions
Jupyterlab extensions
- Loading branch information
Showing
164 changed files
with
16,577 additions
and
405 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
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 |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# This is a GitHub workflow defining a set of jobs with a set of steps. | ||
# ref: https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-syntax-for-github-actions | ||
# | ||
name: Test labextensions | ||
|
||
on: | ||
pull_request: | ||
branches: ["**"] | ||
push: | ||
branches: [main, master] | ||
tags: ["**"] | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
test_labextensions: | ||
runs-on: ${{ matrix.os }} | ||
timeout-minutes: 40 | ||
|
||
env: | ||
# NOTE: UTF-8 content may be interpreted as ascii and causes errors | ||
# without this. | ||
LANG: C.UTF-8 | ||
MOZ_HEADLESS: 1 | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [windows-latest, ubuntu-20.04] | ||
python: ["3.9", "3.10"] | ||
steps: | ||
# This is how you set an environment variable in a GitHub workflow that | ||
# will be available in following steps as if you would used `export | ||
# MY_ENV=my-value`. | ||
- name: Configure environment variables from job flags | ||
run: | | ||
echo "GROUP=labextensions" >> $GITHUB_ENV | ||
- uses: actions/checkout@v2 | ||
- name: Install node | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: '17.x' | ||
# NOTE: actions/setup-python@v2 can make use of a cache within the GitHub | ||
# Action virtual environment and setup extremely fast. 3.9 isn't | ||
# available in this cache as of November 2020. | ||
- name: Install Python ${{ matrix.python }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install Python dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel setuptools | ||
python tasks.py install --group=labextensions | ||
pip freeze | ||
- name: Install Playwright | ||
run: | | ||
npx playwright install | ||
- name: Run pytest | ||
run: | | ||
python tasks.py tests --group=labextensions | ||
- name: Upload Playwright Test report | ||
if: always() | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: nbgrader-playwright-tests-os_${{ matrix.os }}-python_${{ matrix.python }} | ||
path: | | ||
playwright-tests |
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
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import pytest | ||
|
||
pytest_plugins = ["jupyter_server.pytest_plugin"] | ||
|
||
|
||
@pytest.fixture | ||
def jp_server_config(jp_server_config): | ||
return {"ServerApp": {"jpserver_extensions": {"nbgrader": True}}} |
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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
{ | ||
"data": { | ||
"layout-restorer:data": { | ||
"main": { | ||
"dock": { | ||
"type": "tab-area", | ||
"currentIndex": 0, | ||
"widgets": [ | ||
"nbgrader-formgrader:nbgrader-formgrader" | ||
] | ||
}, | ||
"current": "nbgrader-formgrader:nbgrader-formgrader" | ||
}, | ||
"down": { | ||
"size": 0, | ||
"widgets": [] | ||
} | ||
}, | ||
"nbgrader-formgrader:nbgrader-formgrader": { | ||
"data": {} | ||
} | ||
}, | ||
"metadata": { | ||
"id": "formgrader" | ||
} | ||
} |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"packageManager": "python", | ||
"packageName": "nbgrader", | ||
"uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package nbgrader" | ||
} |
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.