feat: add ZeroMQ support and refactor sinks architecture #133
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: Python Test | |
| on: | |
| push: | |
| branches: [ "main" ] | |
| pull_request: | |
| branches: [ "main" ] | |
| permissions: | |
| contents: read | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| check-latest: true | |
| allow-prereleases: true | |
| - name: Cache Python dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('requirements/*.txt') }}-python-${{ matrix.python-version }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip-python-${{ matrix.python-version }} | |
| - name: Install dependencies | |
| continue-on-error: true | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install flake8 mypy | |
| pip install -e . | |
| if [ -f requirements/requirements-test.txt ]; then pip install -r requirements/requirements-test.txt; fi | |
| - name: Lint with flake8 | |
| run: | | |
| # Stop the build if there are Python syntax errors or undefined names | |
| flake8 ./objwatch ./examples --count --select=E9,F63,F7,F82 --show-source --statistics | |
| # The GitHub editor is 127 chars wide | |
| flake8 ./objwatch ./examples --count --max-complexity=16 --max-line-length=127 --statistics | |
| - name: Type check with mypy | |
| run: | | |
| # Run mypy type checker | |
| mypy ./objwatch --ignore-missing-imports | |
| - name: Test with pytest | |
| run: | | |
| python -m pytest tests |