updated readme #31
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: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| name: Build and Test | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install the latest version of uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Set up Python | |
| uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0 | |
| with: | |
| python-version: "3.10" | |
| - name: Install dependencies | |
| run: uv sync --frozen --all-extras --dev | |
| - name: Run tests | |
| run: | | |
| if [ -d "tests" ]; then | |
| uv run pytest | |
| else | |
| echo "No tests directory found, skipping tests" | |
| fi | |
| - name: Run pyright | |
| run: uv run pyright | |
| - name: Run ruff format check | |
| run: uv run ruff format --check . | |
| - name: Run ruff lint | |
| run: uv run ruff check . | |
| - name: Run bandit security check | |
| run: | | |
| uv pip install bandit[toml] | |
| uv run bandit -r -c pyproject.toml mcp_server_rabbitmq/ | |
| - name: Build package | |
| run: uv build | |
| - name: Upload distribution | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ |