Skip to content

Commit

Permalink
Run examples on Ubuntu only (#140)
Browse files Browse the repository at this point in the history
* split cell

* split cell further

* see if extending timeout works

* oops pasted in the middle of dist

* make timeout much higher

* even higher

* stop mac examples for now
  • Loading branch information
lilyminium authored Oct 14, 2024
1 parent f752eac commit 1d7e4ff
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/examples-ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [macOS-12, ubuntu-latest]
os: [ubuntu-latest]
python-version: ["3.11", "3.12"]
pydantic-version: ["2"]
include-rdkit: [true]
Expand Down Expand Up @@ -89,4 +89,4 @@ jobs:
- name: Run example notebooks
run: |
python -m pytest -r fE -v -x --tb=short -nauto --nbval-lax --dist loadscope examples
python -m pytest -r fE -v -x --tb=short -nauto --nbval-lax --nbval-cell-timeout=50000 --dist loadscope examples
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,30 @@
"from pytorch_lightning.callbacks import TQDMProgressBar"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "c8cb0a08-eea6-41e4-9fd6-158204e26e79",
"metadata": {},
"outputs": [],
"source": [
"trainer = pl.Trainer(\n",
" max_epochs=100,\n",
" callbacks=[TQDMProgressBar()], # add progress bar\n",
" accelerator=\"cpu\"\n",
")"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "f8846142-77f2-4d60-a74e-c3bc3c3ed3ee",
"metadata": {},
"outputs": [],
"source": [
"datamodule = training_model.create_data_module(verbose=False)"
]
},
{
"cell_type": "code",
"execution_count": 14,
Expand Down Expand Up @@ -2058,16 +2082,9 @@
}
],
"source": [
"trainer = pl.Trainer(\n",
" max_epochs=100,\n",
" callbacks=[TQDMProgressBar()], # add progress bar\n",
" accelerator=\"cpu\"\n",
")\n",
"\n",
"\n",
"trainer.fit(\n",
" training_model,\n",
" datamodule=training_model.create_data_module(verbose=False),\n",
" datamodule=datamodule,\n",
")"
]
},
Expand Down Expand Up @@ -2137,7 +2154,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.5"
"version": "3.11.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 1d7e4ff

Please sign in to comment.