Skip to content

Commit 4d15685

Browse files
authored
Run tests on push (#185)
1 parent 6bf3665 commit 4d15685

File tree

3 files changed

+43
-0
lines changed

3 files changed

+43
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on:
4+
- push
5+
- pull_request
6+
7+
jobs:
8+
coverage:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
python-version: [3.9, "3.10", "3.11"]
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
- name: Set up Python
18+
uses: actions/setup-python@v4
19+
with:
20+
python-version: ${{ matrix.python-version }}
21+
cache: "pip"
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install -r requirements_dev.txt .
26+
- name: Tests
27+
run: pytest --cov-report term-missing --cov-report=xml tests
28+
- name: Upload coverage to Codecov
29+
uses: codecov/codecov-action@v3

requirements.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
async_timeout>=4.0.1
2+
bleak>=0.17.0
3+
bleak-retry-connector>=2.9.0
4+
cryptography>=38.0.3
5+
boto3>=1.20.24
6+
requests>=2.28.1

requirements_dev.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
pytest-asyncio
2+
pytest-cov
3+
async_timeout>=4.0.1
4+
bleak>=0.17.0
5+
bleak-retry-connector>=2.9.0
6+
cryptography>=38.0.3
7+
boto3>=1.20.24
8+
requests>=2.28.1

0 commit comments

Comments
 (0)