From f63abd55a78bf6358240a3cd8101dd429a376e2d Mon Sep 17 00:00:00 2001
From: pgleeson
Date: Wed, 9 Oct 2024 10:55:01 +0100
Subject: [PATCH] Add test on notebooks using nbmake
---
.github/workflows/non-omv.yml | 44 +++++++++++++++++++++++++++++++++++
.gitignore | 2 +-
2 files changed, 45 insertions(+), 1 deletion(-)
create mode 100644 .github/workflows/non-omv.yml
diff --git a/.github/workflows/non-omv.yml b/.github/workflows/non-omv.yml
new file mode 100644
index 0000000..23f4172
--- /dev/null
+++ b/.github/workflows/non-omv.yml
@@ -0,0 +1,44 @@
+
+name: Testing non OMV scripts
+
+on:
+ push:
+ branches: [ main, development, experimental ]
+ pull_request:
+ branches: [ main, development, experimental ]
+
+jobs:
+ build:
+
+ runs-on: ubuntu-latest
+ strategy:
+ fail-fast: false
+ matrix:
+ python-version: [ "3.10" ]
+
+ steps:
+ - uses: actions/checkout@v4
+
+ - name: Set up Python ${{ matrix.python-version }}
+ uses: actions/setup-python@v5
+ with:
+ python-version: ${{ matrix.python-version }}
+
+
+ - name: Test notebooks
+ run: |
+
+ pip install -r requirements.txt
+
+ pip install nbmake
+
+ pytest --nbmake CellNetworkBuilder.ipynb
+
+ pytest --nbmake Replay.ipynb
+
+
+
+ - name: Final version info
+ run: |
+ pip list
+ env
diff --git a/.gitignore b/.gitignore
index 1fbe5aa..1b2db18 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,4 +11,4 @@ TestNet.net.png
*_code.gen.so
*_eden.py
*.mod
-
+/BallAndStick.cell.svg