Fix duplicate kernel creation bug in use_notebook tool #418
Workflow file for this run
This file contains hidden or 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: | |
| defaults: | |
| run: | |
| shell: bash -eux {0} | |
| jobs: | |
| build: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ["3.10", "3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Base Setup | |
| uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
| - name: Install the extension | |
| run: | | |
| python -m pip install ".[test]" | |
| - name: Build the extension | |
| run: | | |
| pip install build | |
| python -m build --sdist | |
| cp dist/*.tar.gz jupyter_mcp_server.tar.gz | |
| pip uninstall -y "jupyter_mcp_server" | |
| rm -rf "jupyter_mcp_server" | |
| - uses: actions/upload-artifact@v4 | |
| if: startsWith(matrix.os, 'ubuntu') | |
| with: | |
| name: jupyter_mcp_server-sdist-${{ matrix.python-version }} | |
| path: jupyter_mcp_server.tar.gz | |
| # check_links: | |
| # runs-on: ubuntu-latest | |
| # steps: | |
| # - uses: actions/checkout@v5 | |
| # - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
| # - uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1 | |
| test_lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 | |
| - name: Run Linters | |
| run: | | |
| bash ./.github/workflows/lint.sh | |
| test_sdist: | |
| needs: build | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.13"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Install Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: "x64" | |
| - uses: actions/download-artifact@v5 | |
| with: | |
| name: jupyter_mcp_server-sdist-${{ matrix.python-version }} | |
| - name: Install and Test | |
| run: | | |
| pip install jupyter_mcp_server.tar.gz | |
| pip list 2>&1 | grep -ie "jupyter_mcp_server" | |
| python -c "import jupyter_mcp_server" |