Skip to content

Commit 35994cb

Browse files
committed
add run-tests worlflow
1 parent adffb11 commit 35994cb

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/tests.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Run Unit Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- '**'
7+
workflow_dispatch:
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
run-python-test:
14+
name: Unit tests
15+
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: [3.10.14]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
28+
- name: install python dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install '.[dev]'
32+
- name: run tests
33+
run: python -m pytest tests/

0 commit comments

Comments
 (0)