Skip to content

Commit 06509ff

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

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/pytest.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
pip install -r requirements.txt
17+
- name: Test with pytest
18+
run: |
19+
pytest --doctest-modules --junitxml=junit/test-results.xml --cov=ninetoothed --cov-report=xml --cov-report=html

0 commit comments

Comments
 (0)