Fix subscriber count response handling (#67) #8
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 | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install project and test runner | |
| run: | | |
| python -m pip install poetry==2.3.2 | |
| poetry install --all-extras | |
| - name: Run tests | |
| run: poetry run pytest -q | |
| build: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install build tools | |
| run: python -m pip install poetry==2.3.2 twine==6.2.0 | |
| - name: Validate and build package | |
| run: | | |
| poetry check | |
| poetry build | |
| python -m twine check dist/* | |
| - name: Smoke test wheel installations | |
| run: | | |
| WHEEL=$(find dist -name '*.whl' -print -quit) | |
| python -m venv /tmp/python-substack-base | |
| /tmp/python-substack-base/bin/pip install "$WHEEL" | |
| /tmp/python-substack-base/bin/substack --version | |
| /tmp/python-substack-base/bin/python -c "import substack" | |
| python -m venv /tmp/python-substack-mcp | |
| /tmp/python-substack-mcp/bin/pip install "${WHEEL}[mcp]" | |
| /tmp/python-substack-mcp/bin/python -c "import substack_mcp.mcp_server" | |
| - uses: actions/upload-artifact@v7 | |
| with: | |
| name: python-substack-distributions | |
| path: dist/ | |
| if-no-files-found: error |