Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
22 changes: 7 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ jobs:
run: |
sudo apt install -y pandoc
python -m pip install --upgrade pip
# Keep track of pyro-api master branch
pip install https://github.com/pyro-ppl/pyro-api/archive/master.zip
pip install .[test]
pip install . --group test
pip freeze
- name: Run test
run: make test
Expand All @@ -51,12 +49,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Keep track of pyro-api master branch
pip install https://github.com/pyro-ppl/pyro-api/archive/master.zip
pip install torch==2.4.1 torchvision==0.19.1 --index-url https://download.pytorch.org/whl/cpu
# Keep track of Pyro master branch
pip install https://github.com/pyro-ppl/pyro/archive/master.zip
pip install .[test,torch]
# TODO: remove once pyro-ppl releases the Uniform arg_constraints fix
# (https://github.com/pyro-ppl/pyro/pull/3453).
pip install .[torch] --group test "torch<=2.6"
Comment on lines +52 to +54

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh man we really need to release pyro, it's been over two years 😫

pip freeze
- name: Run test
run: make test
Expand All @@ -80,12 +75,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
# Keep track of pyro-api master branch
pip install https://github.com/pyro-ppl/pyro-api/archive/master.zip
pip install "jax<0.10"
# Keep track of NumPyro master branch
pip install https://github.com/pyro-ppl/numpyro/archive/master.zip
pip install .[test]
# TODO: remove once a NumPyro release fully supports jax>=0.10
# (temporary pin from https://github.com/pyro-ppl/funsor/pull/611).
pip install .[jax] --group test "jax<0.10"
pip freeze
- name: Run test
run: make test
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
all: docs test

install:
pip install -e .[dev]
pip install -e . --group dev

docs: FORCE
mkdir -p docs/source/_static
Expand Down
21 changes: 11 additions & 10 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,16 @@ dependencies = [
[project.optional-dependencies]
torch = [
"pyro-ppl>=1.8.0",
"torch>=1.11.0",
"torchvision>=0.12.0",
"torch>=2.0",
"torchvision>=0.15.0",
]
jax = [
"numpyro>=0.7.0",
"jax>=0.2.21",
"jaxlib>=0.1.71",
]

[dependency-groups]
test = [
"pandas",
"pyro-api>=0.1.2",
Expand All @@ -54,17 +56,16 @@ test = [
"ruff>=0.16.1",
"scipy",
]
dev = [
"nbsphinx",
"pandas",
"pytest>=7",
"pytest-xdist>=3",
"ruff>=0.16.1",
"scipy",
docs = [
"ipython<=8.6.0",
"nbsphinx==0.8.9",
"sphinx>=2.0",
"sphinx-gallery",
"sphinx_rtd_theme",
"torchvision>=0.12.0",
]
dev = [
{ include-group = "test" },
{ include-group = "docs" },
]

[project.urls]
Expand Down
Loading