Skip to content

Commit 4ebe3ff

Browse files
committed
Add a GitHub workflow for testing using the pytest framework
1 parent baa57f4 commit 4ebe3ff

1 file changed

Lines changed: 18 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: pytest
2+
on: [push, pull_request]
3+
jobs:
4+
pytest:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- name: Set up Python
9+
uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.10"
12+
- name: Install dependencies
13+
run: |
14+
python -m pip install --upgrade pip
15+
pip install -e .[all]
16+
- name: Test with pytest
17+
run: |
18+
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=ninetoothed --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)