-
Notifications
You must be signed in to change notification settings - Fork 3
Add CI #19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add CI #19
Changes from all commits
80cc4f2
8c77e21
8c82e8a
6dd8ee0
89581c0
3a516ed
393a6fa
4e11dc9
b5352bb
c78a16c
79d80b9
e361dbf
b5760ce
215c52e
b23a326
d3fcd92
3172720
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| name: ci | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| pre-commit: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.13" | ||
| - uses: pre-commit/action@v3.0.1 | ||
|
|
||
| test: | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| matrix: | ||
| python-version: ["3.13"] | ||
|
|
||
| name: tests ${{ matrix.python-version }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Setup environment ${{ matrix.python-version }} | ||
| uses: conda-incubator/setup-miniconda@v2 | ||
| with: | ||
| channels: conda-forge, defaults | ||
| channel-priority: true | ||
| python-version: ${{ matrix.python-version }} | ||
| auto-update-conda: true | ||
|
|
||
| - name: Install distributions | ||
| shell: bash -l {0} | ||
| run: | | ||
| conda install pip | ||
| pip install -e .[test] | ||
| python --version | ||
| conda list | ||
| pip freeze | ||
| - name: Run tests | ||
| shell: bash -l {0} | ||
| run: | | ||
| python -m pytest -vv --cov=distributions --cov-report=term --cov-report=xml tests | ||
| env: | ||
| PYTHON_VERSION: ${{ matrix.python-version }} |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1,4 @@ | ||
| __pycache__ | ||
| __pycache__ | ||
|
|
||
| .coverage | ||
| coverage.xml |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,7 +11,7 @@ | |
| "params", | ||
| [ | ||
| [0.0, 1.0], # Standard logit-normal (centered) | ||
| [0.0, 0.001], # Narrower distribution | ||
| [0.0, 0.5], # Narrower distribution (sigma=0.001 is too extreme for numerical integration) | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What error do we get? 0.001 is not that extreme; we should be able to handle it easily. If not, we need to improve the integration routine. Asking just to open an issue, not that we need to fix it now.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Update I may have a fix for this
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. great! do you wanna push it in a different PR? |
||
| [1.0, 1.0], # Shifted right (mode > 0.5) | ||
| [-1.0, 1.0], # Shifted left (mode < 0.5) | ||
| [0.0, 2.0], # Wider distribution (approaches U-shape) | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.