Skip to content

Commit 7e80b4e

Browse files
authored
Merge pull request #8 from dylanwal/git_hub_actions
add github actions for testing
2 parents 67d28f2 + 9a50846 commit 7e80b4e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Tests
2+
3+
on:
4+
- pull_request
5+
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
python-version: ["3.7", "3.10", "3.11"]
14+
15+
steps:
16+
- uses: actions/checkout@v3
17+
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install -r requirements_dev.txt
27+
28+
- name: Install
29+
run: pip install .
30+
31+
- name: Test with pytest
32+
run: |
33+
pytest --cov --cov-report=html

0 commit comments

Comments
 (0)