File tree Expand file tree Collapse file tree 7 files changed +114
-4
lines changed
Expand file tree Collapse file tree 7 files changed +114
-4
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ # Sequence of patterns matched against refs/tags
6+ tags :
7+ - ' v*' # Push events to matching v*, i.e. v1.0, v20.15.10
8+
9+ jobs :
10+ release-build :
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - uses : actions/setup-python@v5
17+ with :
18+ python-version : " 3.12"
19+
20+ - name : build release distributions
21+ run : |
22+ python -m pip install pdm
23+ pdm build
24+
25+ - name : upload windows dists
26+ uses : actions/upload-artifact@v4
27+ with :
28+ name : release-dists
29+ path : dist/
30+
31+ pypi-publish :
32+ runs-on : ubuntu-latest
33+ needs :
34+ - release-build
35+ permissions :
36+ id-token : write
37+
38+ steps :
39+ - name : Retrieve release distributions
40+ uses : actions/download-artifact@v4
41+ with :
42+ name : release-dists
43+ path : dist/
44+
45+ - name : Publish release distributions to PyPI
46+ uses : pypa/gh-action-pypi-publish@release/v1
47+
Original file line number Diff line number Diff line change 1+ name : Run tests
2+
3+ on :
4+ push :
5+ branches :
6+ - ' **'
7+ tags-ignore :
8+ - ' **'
9+
10+ jobs :
11+ build :
12+
13+ runs-on : ${{ matrix.os }}
14+
15+ strategy :
16+ matrix :
17+ os : [ubuntu-latest, windows-latest]
18+ python-version : [3.12]
19+
20+ steps :
21+
22+ - name : checkout code
23+ uses : actions/checkout@v2
24+
25+ - name : Set up Python ${{ matrix.python-version }}
26+ uses : actions/setup-python@v2
27+ with :
28+ python-version : ${{ matrix.python-version }}
29+
30+ - name : Install pdm
31+ run : pip install pdm
32+
33+ - name : pre-commit checks
34+ uses : pre-commit/action@v2.0.3
35+
36+ - name : Run tests
37+ run : |
38+ pdm install --dev
39+ pdm run pytest tests --cov=src
40+
41+ - name : Upload coverage reports to Codecov
42+ uses : codecov/codecov-action@v3
43+
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/pre-commit/pre-commit-hooks
3+ rev : v4.6.0
4+ hooks :
5+ - id : check-yaml
6+ - id : end-of-file-fixer
7+ - id : trailing-whitespace
8+ - repo : https://github.com/astral-sh/ruff-pre-commit
9+ # Ruff version.
10+ rev : v0.6.0
11+ hooks :
12+ # Run the linter.
13+ - id : ruff
14+ # Run the formatter.
15+ - id : ruff-format
16+
Original file line number Diff line number Diff line change 11# grapevine
22
3- JAX/Blackjax implementation of the grapevine method for reusing the solutions of guessing problems embedded in Hamiltonian trajectories.
3+ JAX/Blackjax implementation of the grapevine method for reusing the solutions of guessing problems embedded in Hamiltonian trajectories.
44
5- The grapevine method can dramatically speed up MCMC for statistical with embedded equation solving problems.
5+ The grapevine method can dramatically speed up MCMC for statistical with embedded equation solving problems.
66
77## Installation
88
Original file line number Diff line number Diff line change 11"""An example comparing GrapeNUTS and NUTS on a representative problem.
22
3- This is supposed to be a complete example, mirroring how the grapevine method is used in practice.
3+ This is supposed to be a complete example, mirroring how the grapevine method is used in practice.
44
55
66"""
Original file line number Diff line number Diff line change 11[project ]
2- name = " grapevine"
2+ name = " grapevine-mcmc "
33version = " 0.1.0"
44description = " Faster Hamiltonian trajectories for problems with guesses, using Blackjax"
55authors = [
@@ -33,3 +33,6 @@ dev = [
3333]
3434[tool .hatch .metadata ]
3535allow-direct-references = true
36+
37+ [tool .hatch .build .targets .wheel ]
38+ packages = [" src/grapevine" ]
Original file line number Diff line number Diff line change 11"""Simple example problems for other tests to use."""
2+
23from functools import partial
34
45from jax .scipy .special import expit
You can’t perform that action at this time.
0 commit comments