Skip to content

Commit

Permalink
Remove some examples from tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dirmeier committed Mar 8, 2023
1 parent 8229715 commit 9d261c9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 39 deletions.
21 changes: 0 additions & 21 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,27 +45,6 @@ jobs:
verbose: true
files: coverage.xml

notebooks:
name: notebooks
runs-on: ubuntu-latest
needs:
- test
strategy:
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install tox codecov
- name: Run notebooks
run: |
tox -e notebooks
examples:
name: examples
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,11 +61,11 @@ repos:
files: "(ramsey|examples)"

- repo: https://github.com/nbQA-dev/nbQA
rev: 1.3.1
rev: 1.6.3
hooks:
- id: nbqa-black
- id: nbqa-pyupgrade
args: [--py37-plus]
args: [--py39-plus]
- id: nbqa-isort
args: ['--profile=black']
- id: nbqa-flake8
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ To install the latest GitHub <RELEASE>, just call the following on the
command line:

```bash
pip install git+https://github.com/dirmeier/ramsey@<RELEASE>
pip install git+https://github.com/ramsey-devs/ramsey@<RELEASE>
```

See also the installation instructions for [Haiku](https://github.com/deepmind/dm-haiku) and [JAX](https://github.com/google/jax), if
Expand Down
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ command line:

.. code-block:: bash
pip install git+https://github.com/dirmeier/ramsey@<RELEASE>
pip install git+https://github.com/ramsey-devs/ramsey@<RELEASE>
See also the installation instructions for `Haiku <https://github.com/deepmind/dm-haiku>`_ and `JAX <https://github.com/google/jax>`_, if
you plan to use Ramsey on GPU/TPU.
Expand Down
2 changes: 1 addition & 1 deletion ramsey/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
from ramsey._src.neural_process.doubly_attentive_neural_process import DANP
from ramsey._src.neural_process.neural_process import NP

__version__ = "0.0.4"
__version__ = "0.1.0"

__all__ = ["NP", "ANP", "DANP", "GP", "SparseGP"]
13 changes: 0 additions & 13 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,6 @@ commands_pre =
commands =
pytest -v --doctest-modules --cov=./ramsey --cov-report=xml ramsey

[testenv:notebooks]
skip_install = true
commands_pre =
pip install jupyter git+https://github.com/dirmeier/[email protected]
pip install -e .
python -m ipykernel install --name ramsey-dev --user
commands =
jupyter nbconvert --execute docs/notebooks/neural_process.ipynb --ExecutePreprocessor.kernel_name=ramsey-dev --to html
rm -rf docs/notebooks/neural_process.html

[testenv:examples]
skip_install = true
commands_pre =
Expand All @@ -61,6 +51,3 @@ commands =
python examples/attentive_neural_process.py
python examples/bayesian_neural_network.py
python examples/gaussian_process.py
python examples/negative_binomial_linear_model.py
python examples/recurrent_attentive_neural_process.py
python examples/sparse_gaussian_process.py

0 comments on commit 9d261c9

Please sign in to comment.