Skip to content

Commit 00a817b

Browse files
committed
add GitHub action running pytest
1 parent 80c2b82 commit 00a817b

1 file changed

Lines changed: 33 additions & 0 deletions

File tree

.github/workflows/pytest.yml

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

0 commit comments

Comments
 (0)