-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (34 loc) · 1.05 KB
/
tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test
on:
push:
branches-ignore:
- 'master'
- 'refs/tags/*'
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.6', '3.7', '3.8' ]
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup python
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- name: Get short Python version
id: full-python-version
shell: bash
run: echo ::set-output name=version::$(python -c "import sys; print(f'py{sys.version_info.major}{sys.version_info.minor}')")
- name: install pre-reqs
run: sudo apt-get update && sudo apt-get install libbluetooth-dev && pip install poetry pre-commit
- name: lint
run: pre-commit run --all-files
- name: Configure poetry
run: poetry config virtualenvs.in-project true
- name: Install dependencies
run: poetry install
- name: Run tox
run: poetry run tox -e ${{ steps.full-python-version.outputs.version }}