Skip to content

Commit

Permalink
test notebook only with tag
Browse files Browse the repository at this point in the history
  • Loading branch information
yanghaoqi committed Aug 24, 2023
1 parent 008a359 commit 00e8656
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 4 deletions.
1 change: 0 additions & 1 deletion .github/workflows/compiler-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,6 @@ jobs:
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/tflite_basic.xml pytest tests/importer/tflite_/basic/ --doctest-modules --junitxml=test_results/tflite_basic.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/tflite_combine.xml pytest tests/importer/tflite_/combine/ --doctest-modules --junitxml=test_results/tflite_combine.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/tflite_model.xml pytest tests/importer/tflite_/model/ --doctest-modules --junitxml=test_results/tflite_model.xml
dotnet-coverage collect -s tools/dotnet_coverage.settings.xml -f cobertura -o coverage/jupyter.xml pytest --nbmake examples/user_guide/ --doctest-modules --junitxml=test_results/jupyter.xml
dotnet-coverage merge -o coverage.integration.xml -f cobertura -r coverage/*.xml
- name: Upload Coverage
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/jupyter-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
on:
push:
tags:
- '*'

jobs:
test:
name: test-notebook-${{matrix.config.name}}
runs-on: ${{matrix.config.os}}
strategy:
matrix:
config:
- {name: x86_64-macos, os: macos-latest}
- {name: x86_64-linux, os: ubuntu-latest}
- {name: x86_64-windows, os: windows-latest}

steps:
- uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.7

- name: Install dependencies
run: pip install --upgrade pip && pip install jupyterlab pytest nbmake

- name: Run tests
run: pytest --nbmake examples/user_guide
3 changes: 0 additions & 3 deletions requirements.test.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,3 @@ clr_loader==0.2.4
toml==0.10.2
pandas
tabulate
nbmake
jupyterlab
scikit-learn

0 comments on commit 00e8656

Please sign in to comment.