Skip to content

Commit f16cd1c

Browse files
Run tests on push
1 parent 4925e78 commit f16cd1c

2 files changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Run Tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
workflow_dispatch:
11+
12+
jobs:
13+
test:
14+
runs-on: ubuntu-latest
15+
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
21+
submodules: recursive
22+
23+
- name: Set up Python
24+
uses: actions/setup-python@v5
25+
with:
26+
python-version: "3.12"
27+
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -e .[dev]
32+
33+
- name: Run tests
34+
run: |
35+
cd tests
36+
python -m unittest discover -s . -p "test_*.py" -v

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ dev = [
4444
"flake8",
4545
"mypy",
4646
"pydocstyle",
47+
"nbconvert",
48+
"nbformat",
4749
]
4850

4951
# Warn when modules, classes, methods, or functions lack docstrings (run: pydocstyle .)

0 commit comments

Comments
 (0)