Properly detect read error on socket (closes #1) #45
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
| # SPDX-FileCopyrightText: 2020-2025 Sébastien Helleu <flashcode@flashtux.org> | |
| # | |
| # SPDX-License-Identifier: GPL-3.0-or-later | |
| name: CI | |
| on: | |
| - push | |
| - pull_request | |
| jobs: | |
| build: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| - macos-14 | |
| python-version: | |
| - "3.9" | |
| - "3.10" | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| name: Python ${{ matrix.python-version }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| run: | | |
| pip install bandit flake8 pylint | |
| - name: Lint with flake8 | |
| run: make flake8 | |
| - name: Lint with pylint | |
| run: make pylint | |
| - name: Lint with bandit | |
| run: make bandit | |
| container: | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-24.04 | |
| builder: | |
| - docker | |
| - podman | |
| name: ${{ matrix.builder }} on ${{ matrix.os }} | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: ${{ matrix.builder }} build ${{ matrix.image }} | |
| run: make CONTAINER_CMD=${{ matrix.builder }} container |