Skip to content

Commit

Permalink
Merge pull request #39 from matthewcarbone/mc2
Browse files Browse the repository at this point in the history
Add notebook smoke tests, QOL changes, part 2
  • Loading branch information
ziatdinovmax authored Oct 2, 2023
2 parents 6d5bc4c + b5348d0 commit 1e3f33a
Show file tree
Hide file tree
Showing 5 changed files with 202 additions and 97 deletions.
13 changes: 13 additions & 0 deletions .flake8
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
7 changes: 5 additions & 2 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ on:

jobs:
build-linux:
runs-on: ubuntu-latest

strategy:
max-parallel: 5
matrix:
python-version: ['3.9', '3.10']
python-version: ['3.9', '3.10', '3.11']
os: [ubuntu-latest]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
Expand Down
54 changes: 54 additions & 0 deletions .github/workflows/notebook_smoke.yml
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"
Loading

0 comments on commit 1e3f33a

Please sign in to comment.