Skip to content

Move warning classes from protocols to device module (#22) #78

Move warning classes from protocols to device module (#22)

Move warning classes from protocols to device module (#22) #78

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']
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@v3
yamllint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: yamllint .