Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test example in CI (new) #579

Merged
merged 39 commits into from
Mar 26, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
b818cf7
test example CI
Jul 11, 2023
4a6be37
try to correct path
giovp Jul 11, 2023
9148664
Merge branch 'main' into add/test_tutorials_ci
giovp Jul 11, 2023
a497dff
update
giovp Jul 11, 2023
b1a0979
update test
giovp Jul 11, 2023
4b84eba
add to tox
giovp Jul 11, 2023
00c9ffb
rename
giovp Jul 11, 2023
97f50df
fix tox
giovp Jul 11, 2023
87c37b7
add to tox
giovp Jul 11, 2023
416bdb1
Merge branch 'main' into add/test_tutorials_ci
giovp Jul 12, 2023
f5e0335
update
giovp Jul 12, 2023
0254771
update path
giovp Jul 12, 2023
c87d2e0
add kernel
giovp Jul 12, 2023
8580acd
fix deps
giovp Jul 12, 2023
f57fd60
readd deps
giovp Jul 12, 2023
5dc07d1
add env
giovp Jul 12, 2023
fe908aa
update
giovp Jul 12, 2023
0d11c2f
Merge branch 'main' into add/test_tutorials_ci
giovp Jul 16, 2023
689c414
update ci
giovp Jul 16, 2023
8413ac8
add submodules
giovp Jul 16, 2023
a8bc83b
add recursive
giovp Jul 16, 2023
b5320f3
Merge branch 'main' into add/test_tutorials_ci
MUCDK Feb 20, 2024
cfb500d
change command to build the docs
selmanozleyen Mar 4, 2024
2b04abb
new name just to test CI
selmanozleyen Mar 4, 2024
d6c9eb2
specify kernel
selmanozleyen Mar 4, 2024
5cd729c
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 4, 2024
5187384
remove display name
selmanozleyen Mar 4, 2024
a7d9377
rename kernel
selmanozleyen Mar 4, 2024
a426a54
fix tox env
selmanozleyen Mar 4, 2024
6ff2f0a
Merge branch 'main' into add/test_tutorials_ci
selmanozleyen Mar 7, 2024
05d2e7b
use jupytext
selmanozleyen Mar 7, 2024
5ab4ed4
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
20a6684
print notebook name
selmanozleyen Mar 7, 2024
a32b0ff
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] Mar 7, 2024
d43de10
Merge branch 'main' into add/test_tutorials_ci
selmanozleyen Mar 12, 2024
8d0d06e
Merge branch 'main' into add/test_tutorials_ci
giovp Mar 14, 2024
677899a
Merge branch 'main' into add/test_tutorials_ci
giovp Mar 19, 2024
db4dceb
Merge branch 'main' into add/test_tutorials_ci
giovp Mar 19, 2024
c059ebc
Merge branch 'main' into add/test_tutorials_ci
selmanozleyen Mar 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/test-examples.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Test examples

on:
push:
branches: [main]
pull_request:
branches: [main]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python: ["3.10"]

steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}

- name: Install pip dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test examples
env:
MPLBACKEND: agg
PLATFORM: ${{ matrix.os }}
DISPLAY: :42
run: |
tox -e examples-docs
17 changes: 16 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,6 @@ commands =

[testenv:lint-docs]
description = Lint the documentation.
deps =
extras = docs
ignore_errors = true
allowlist_externals = make
Expand All @@ -294,6 +293,22 @@ commands =
# TODO(michalk8): uncomment after https://github.com/theislab/moscot/issues/490
# make spelling {posargs}

[testenv:examples-docs]
allowlist_externals = bash
description = Run the notebooks.
use_develop = true
deps =
ipykernel
jupytext
nbconvert
leidenalg
extras = docs
changedir = {tox_root}{/}docs
commands =
python -m ipykernel install --user --name=moscot
bash -c "for nb in notebooks/examples/plotting/*.ipynb notebooks/examples/problems/*ipynb notebooks/examples/solvers/*ipynb; do echo Running $nb; jupytext -k moscot --execute $nb; done"


[testenv:clean-docs]
description = Remove the documentation.
deps =
Expand Down
Loading