Skip to content

Commit c6d0e75

Browse files
committed
Add basic testing workflow
1 parent f3b207a commit c6d0e75

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

.github/workflows/run_tests.yml

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: "Test notebooks"
2+
3+
on: [pull_request, workflow_dispatch]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Set up Python
11+
uses: actions/setup-python@v5
12+
with:
13+
python-version: "3.11"
14+
- name: "Install dependencies"
15+
run: |
16+
python -m pip install -U -r requirements.txt
17+
python -m pip install -U -r requirements_tests.txt
18+
19+
- name: "Run tests"
20+
run: python -m pytest tests

tests/test_dummy.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_dummy():
2+
assert 1 + 1 == 2

0 commit comments

Comments
 (0)