Skip to content

Commit 25d4add

Browse files
committed
add GH action to run test suite
1 parent 9a05df0 commit 25d4add

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Tests
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v5
18+
with:
19+
python-version: '3.11'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install pytest pytest-cov pyyaml pandas requests
25+
26+
- name: Run tests with pytest
27+
run: |
28+
pytest tests/ -v --cov=. --cov-report=term-missing
29+
30+
- name: Display coverage summary
31+
run: |
32+
coverage report

0 commit comments

Comments
 (0)