diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 42b79b6a..6d579490 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -55,6 +55,23 @@ jobs: uses: codecov/codecov-action@v3 with: fail_ci_if_error: false + + examples: + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.9 + uses: actions/setup-python@v2 + with: + python-version: "3.9" + - name: Install dependencies + run: | + python -m pip install --upgrade pip setuptools + pip install tox-gh-actions + - name: Run tox + run: | + tox -e examples + docs: runs-on: ubuntu-22.04 steps: diff --git a/tox.ini b/tox.ini index f0e967ad..3f75f1a5 100644 --- a/tox.ini +++ b/tox.ini @@ -48,6 +48,17 @@ commands = rm -f ./*.gcov coverage report -m +[testenv:examples] +envdir={toxworkdir}/{envname} +deps = + pytest>=7.3.1 + scipy>=1.10.1 + nbmake + deap + matplotlib + bluepyopt +commands = + pytest --nbmake examples [testenv:docs] usedevelop=True # to access local rst files