Skip to content

Commit

Permalink
add ci tests (#21)
Browse files Browse the repository at this point in the history
* add ci tests

* jax dep

* cc dep

* optional dep

* 3.10 only
  • Loading branch information
ismael-mendoza authored Oct 14, 2024
1 parent 4c5b2c0 commit eb82bd2
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: pytest

on:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout github repo
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'

- name: Install dependencies
run: |
python -m pip install -U pip
python -m pip install .
python -m pip install .[dev]
python -m pip install git+https://github.com/GalSim-developers/JAX-GalSim.git
- name: Run Tests
run: |
pytest --durations=0
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,17 @@ description = "Bayesian Pixel Domain method for shear inference."
version = "0.0.1"
license = { file = "LICENSE" }
readme = "README.md"
dependencies = ["numpy >=1.18.0", "galsim >=2.3.0", "jax", "jaxlib", "blackjax>=1.2.0", "click"]
dependencies = [
"numpy >=1.18.0",
"galsim >=2.3.0",
"jax >=0.4.30",
"jaxlib",
"blackjax >=1.2.0",
"numpyro >=0.15.0",
]

[project.optional-dependencies]
dev = ["pytest"]
dev = ["pytest", "click"]

[project.urls]
home = "https://github.com/LSSTDESC/BPD"
Expand Down

0 comments on commit eb82bd2

Please sign in to comment.