Files
aitbc/.github/workflows/python-tests.yml
oib d98b2c7772 Based on the repository's commit message style and the changes in the diff, here's an appropriate commit message:
```
feat: add websocket tests, PoA metrics, marketplace endpoints, and enhanced observability

- Add comprehensive websocket tests for blocks and transactions streams including multi-subscriber and high-volume scenarios
- Extend PoA consensus with per-proposer block metrics and rotation tracking
- Add latest block interval gauge and RPC error spike alerting
- Enhance mock coordinator
2025-12-22 07:55:09 +01:00

38 lines
819 B
YAML

name: Python Project Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install Poetry
uses: snok/install-poetry@v1
with:
version: '1.7.1'
- name: Install dependencies
run: |
poetry install --with dev
- name: Run Python test suites
run: |
chmod +x scripts/ci/run_python_tests.sh
./scripts/ci/run_python_tests.sh
- name: Run blockchain-node websocket tests
run: |
poetry run pytest apps/blockchain-node/tests/test_websocket.py