Skip to content

Commit 8a6a5e1

Browse files
committed
ci: add workflow to run pytest tests and show test coverage
1 parent ebb53d9 commit 8a6a5e1

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/pytest-coverage.yaml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Pytest with Coverage
2+
3+
on:
4+
pull_request:
5+
branches: [humble-devel]
6+
7+
jobs:
8+
test:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Python
16+
uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.10.12'
19+
20+
- name: Install dependencies
21+
run: |
22+
python -m pip install --upgrade pip
23+
pip install -r test/requirements.txt
24+
pip install pytest pytest-cov
25+
26+
- name: Run tests with coverage
27+
run: |
28+
pytest --cov=. --cov-report=xml --cov-report=term

0 commit comments

Comments
 (0)