Forward connect_timeout from ToolServer to MCPClient (#2) #16
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: Package Installation Tests | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| package-build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| fetch-tags: true | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: ${{ vars.CI_UV_VERSION }} | |
| enable-cache: true | |
| - name: Install Python | |
| run: uv python install | |
| - name: Build package | |
| run: | | |
| uv build | |
| - name: Upload dist artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| retention-days: 1 | |
| package-test: | |
| needs: package-build | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| python-version: ['3.11', '3.13'] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Download package | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ | |
| - name: Test wheel installation (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $wheel = Get-ChildItem dist/*.whl | Select-Object -First 1 | |
| pip install $wheel | |
| python -c "import mcpygen" | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
| pip uninstall -y mcpygen | |
| - name: Test wheel installation (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| pip install dist/*.whl | |
| python -c "import mcpygen" | |
| pip uninstall -y mcpygen | |
| - name: Test tarball installation (Windows) | |
| if: runner.os == 'Windows' | |
| shell: pwsh | |
| run: | | |
| $tarball = Get-ChildItem dist/*.tar.gz | Select-Object -First 1 | |
| pip install $tarball | |
| python -c "import mcpygen" | |
| if ($LASTEXITCODE -ne 0) { exit $LASTEXITCODE } | |
| pip uninstall -y mcpygen | |
| - name: Test tarball installation (Unix) | |
| if: runner.os != 'Windows' | |
| run: | | |
| pip install dist/*.tar.gz | |
| python -c "import mcpygen" | |
| pip uninstall -y mcpygen | |
| - name: Run smoke test (Linux) | |
| if: runner.os == 'Linux' | |
| run: | | |
| pip install dist/*.whl | |
| pip install pytest pytest-asyncio | |
| pytest tests/unit/test_replace_variables.py | |
| pip uninstall -y mcpygen |