-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (30 loc) · 980 Bytes
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test Notebooks
on:
push:
paths-ignore:
- '**.md'
jobs:
test_notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout source repository
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: 3.11
architecture: x64
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install dependencies for testing
run: |
pip install -r requirements_dev.txt
- name: Test with doctest
run: |
python -m doctest README.md
- name: Test with pytest
run: |
python -m pytest -v --nbval sensor-things-api-demo.ipynb