Skip to main content
Glama
python-package-ci.yml2.11 kB
name: CI-CD on: push env: UV_SYSTEM_PYTHON: 1 jobs: test: name: Run ruff, mypy and pytest 🧪 runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: Install uv with cache uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: uv.lock - name: Set up Python uses: actions/setup-python@v5 with: python-version-file: pyproject.toml - name: Install dependencies run: uv sync --locked --dev - name: Run ruff format run: uv run ruff format ygg_torrent - name: Run ruff check run: uv run ruff check ygg_torrent - name: Run mypy run: uv run mypy ygg_torrent - name: Run tests run: uv run pytest ygg_torrent build: name: Build distribution 📦 if: startsWith(github.ref, 'refs/tags/') needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: persist-credentials: false - name: Install uv with cache uses: astral-sh/setup-uv@v5 with: enable-cache: true cache-dependency-glob: uv.lock - name: "Set up Python" uses: actions/setup-python@v5 with: python-version-file: pyproject.toml - name: Install dependencies run: uv sync --locked - name: Build a binary wheel and a source tarball run: uv build - name: Store the distribution packages uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ publish-to-pypi: name: >- Publish Python 🐍 distribution 📦 to PyPI if: startsWith(github.ref, 'refs/tags/') needs: build runs-on: ubuntu-latest permissions: id-token: write steps: - name: Download all the dists uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ - name: Publish distribution 📦 to PyPI uses: pypa/gh-action-pypi-publish@release/v1

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/philogicae/ygg-torrent-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server