Skip to content

Switch to pyserial-asyncio-fast to fix event loop being blocked (#34) #117

Switch to pyserial-asyncio-fast to fix event loop being blocked (#34)

Switch to pyserial-asyncio-fast to fix event loop being blocked (#34) #117

Workflow file for this run

---
name: Run checks
on: # yamllint disable-line rule:truthy
push:
branches: [main]
pull_request:
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U flake8 flake8-pyproject pep8-naming
- run: python -m flake8
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U mypy
- run: python -m mypy -p aioraven --strict
pydocstyle:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: python -m pip install -U pydocstyle[toml]
- run: python -m pydocstyle
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python: ['3.9', '3.10', '3.11', '3.12']
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{matrix.python}}
- run: >
python -m pip install -e .
pytest
pytest-asyncio
pytest-cov
pytest-timeout
- run: >
python -m pytest test
--cov
--cov-report xml:coverage.xml
--timeout=2
- uses: codecov/codecov-action@v4
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: yamllint .