Add BLE support #183
This file contains 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: testing | |
on: | |
pull_request: | |
branches: [master, develop] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
python: [3.9.12] | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
steps: | |
- name: Checkout source repository | |
uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
clean: false | |
- name: Checkout to current branch | |
run: git checkout ${{ env.BRANCH }} | |
- name: Install non-python dependencies on Ubuntu | |
if: runner.os == 'Linux' | |
run: | | |
sudo apt-get update -y | |
sudo apt-get install libbluetooth-dev -y | |
- name: Set up Python ${{ matrix.python }} | |
uses: s-weigand/setup-conda@v1 | |
with: | |
python-version: ${{ matrix.python }} | |
conda-channels: anaconda, conda-forge | |
- name: Install liblsl from conda-forge | |
run: | | |
conda install -c conda-forge liblsl | |
pip install -e .[test] | |
python -m pytest --import-mode=append --html=pytest_report.html --self-contained-html | |
- name: Archive test results | |
if: success() || failure() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pytest-results | |
path: pytest_report.html |