-
Notifications
You must be signed in to change notification settings - Fork 162
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 #1355 from mito-ds/dev
Release 11/4/24
- Loading branch information
Showing
41 changed files
with
1,233 additions
and
221 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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: Test - Mito AI | ||
|
||
on: | ||
push: | ||
branches: [ dev ] | ||
paths: | ||
- 'mito-ai/**' | ||
pull_request: | ||
paths: | ||
- 'mito-ai/**' | ||
jobs: | ||
test-mitoai-frontend-jupyterlab: | ||
runs-on: ubuntu-20.04 | ||
timeout-minutes: 60 | ||
strategy: | ||
matrix: | ||
python-version: ['3.8', '3.10', '3.11'] | ||
fail-fast: false | ||
|
||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: pip | ||
cache-dependency-path: | | ||
mito-ai/setup.py | ||
tests/requirements.txt | ||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
cache: 'npm' | ||
cache-dependency-path: mito-ai/package-lock.json | ||
- name: Install dependencies | ||
run: | | ||
cd tests | ||
bash mac-setup.sh | ||
- name: Setup JupyterLab | ||
run: | | ||
cd tests | ||
source venv/bin/activate | ||
cd ../mito-ai | ||
jupyter labextension develop . --overwrite | ||
jupyter server extension enable --py mito-ai | ||
- name: Start a server and run tests | ||
run: | | ||
cd tests | ||
source venv/bin/activate | ||
jupyter lab --config jupyter_server_test_config.py & | ||
npm run test:mitoai | ||
env: | ||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | ||
- name: Upload test-results | ||
uses: actions/upload-artifact@v3 | ||
if: failure() | ||
with: | ||
name: mitoai-jupyterlab-playwright-report-${{ matrix.python-version }} | ||
path: tests/playwright-report/ | ||
retention-days: 14 |
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
scratch* | ||
|
||
# Mac Specific | ||
|
||
|
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,16 @@ | ||
{ | ||
"jupyter.lab.shortcuts": [], | ||
"title": "mito-ai", | ||
"description": "mito-ai settings.", | ||
"type": "object", | ||
"properties": {}, | ||
"additionalProperties": false, | ||
"jupyter.lab.toolbars": { | ||
"Cell": [ | ||
{ | ||
"name": "explain-code", | ||
"command": "toolbar-button:explain-code" | ||
} | ||
] | ||
} | ||
} |
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.