Skip to content

Drop bleak_scanner_instance; construct BleakScanner internally #2259

Drop bleak_scanner_instance; construct BleakScanner internally

Drop bleak_scanner_instance; construct BleakScanner internally #2259

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request: ~
jobs:
lint:
name: lint
runs-on: ubuntu-latest
steps:
- name: Check out code from GitHub
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python 3.11
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
with:
python-version: 3.11
cache: "poetry"
- name: Install dependencies
shell: bash
run: poetry install
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1
- name: Run poetry build
shell: bash
run: poetry build
- name: Run poetry check
shell: bash
run: poetry check
tests:
name: pytest/${{ matrix.os }}/${{ matrix.python-version }}
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
env:
OS: ${{ matrix.os }}
PYTHON: ${{ matrix.python-version }}
steps:
- name: Check out code from GitHub
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Install poetry
run: pipx install poetry
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v5
with:
python-version: ${{ matrix.python-version }}
cache: "poetry"
- name: Get full Python version
id: full-python-version
shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print('-'.join(str(v) for v in sys.version_info))")
- name: Install dependencies
shell: bash
run: poetry install
- name: Run pytest
shell: bash
run: poetry run python -m pytest --cov=. --cov-report=xml
- uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 # v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}