Skip to content

Commit

Permalink
add CI for examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kiliç Ilkan Fabrice committed Dec 18, 2023
1 parent 0de4774 commit 18e389b
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
11 changes: 11 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 18e389b

Please sign in to comment.