Publish 0.1.1 #18
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: Tests | |
| on: | |
| push: | |
| branches: [ main, dev ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest, macos-latest, windows-latest] | |
| python-version: ['3.10', '3.11', '3.12'] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e .[test] | |
| - name: Run linting | |
| run: | | |
| # Install ruff | |
| pip install ruff | |
| # Check linting and formatting | |
| ruff check jupyter_server_mcp tests | |
| ruff format --check jupyter_server_mcp tests | |
| - name: Run unit tests | |
| run: | | |
| pytest tests/ -v -m "not slow and not integration" | |
| - name: Run integration tests | |
| run: | | |
| pytest tests/ -v -m "integration" |