-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #39 from matthewcarbone/mc2
Add notebook smoke tests, QOL changes, part 2
- Loading branch information
Showing
5 changed files
with
202 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[flake8] | ||
exclude = | ||
.git, | ||
__pycache__, | ||
build, | ||
dist, | ||
docs/source/conf.py | ||
max-line-length = 127 | ||
show-source = True | ||
statistics = True | ||
count = True | ||
verbose = 1 | ||
ignore = E203, W503 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: notebooks | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- '*' | ||
push: | ||
branches: | ||
- '*' | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
build-linux: | ||
|
||
|
||
strategy: | ||
matrix: | ||
python-version: ['3.9', '3.10', '3.11'] | ||
os: [ubuntu-latest] | ||
|
||
runs-on: ${{ matrix.os }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
|
||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
|
||
- name: Install dependencies | ||
run: | | ||
sudo apt-get update -qq | ||
python -m pip install --upgrade pip | ||
python -m pip install flake8 pytest | ||
python -m pip install jaxlib | ||
python -m pip install jax | ||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | ||
- name: install package | ||
run: | | ||
pip install . | ||
pip list | ||
- name: Notebook smoke tests | ||
run: | | ||
pip install ipython | ||
pip install nbformat | ||
pip install seaborn | ||
cd examples | ||
ipython -c "%run simpleGP.ipynb" | ||
Oops, something went wrong.