Skip to content

Commit

Permalink
chore: add CI runner (pyserial#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
bdraco authored Sep 7, 2023
1 parent 80bd69d commit 5f060a1
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI

on:
- push
- pull_request

jobs:
coverage:
runs-on: ubuntu-latest

strategy:
matrix:
python-version: [3.9, "3.10", "3.11"]

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt .
- name: Tests
run: pytest --cov-report term-missing --cov-report=xml test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
2 changes: 2 additions & 0 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
pytest-cov
pytest-asyncio

0 comments on commit 5f060a1

Please sign in to comment.