shadow-gossipsub: select muxer and discovery (static | kad-dht) #256
Workflow file for this run
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: | |
| pull_request: | |
| branches: [master] | |
| push: | |
| branches: [master] | |
| jobs: | |
| lint: | |
| name: Lint (autoflake, isort, black) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.10.9" | |
| - run: uv sync --frozen | |
| - name: Check unused imports (autoflake) | |
| run: uv run autoflake --remove-all-unused-imports --recursive --check . | |
| - name: Check import order (isort) | |
| run: uv run isort --profile black -l 100 --check-only --diff . | |
| - name: Check formatting (black) | |
| run: uv run black -l 100 --check --diff . | |
| test: | |
| name: Tests (pytest) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| version: "0.10.9" | |
| - run: uv sync --frozen | |
| - name: Run tests | |
| run: uv run pytest |