acerbilab / pyvbmc

PyVBMC: Variational Bayesian Monte Carlo algorithm for posterior and model inference in Python
https://acerbilab.github.io/pyvbmc/
BSD 3-Clause "New" or "Revised" License
114 stars 6 forks source link

Workflows #126

Closed Bobby-Huggins closed 1 year ago

Bobby-Huggins commented 1 year ago
  1. Adds the following GitHub workflows:
    1. merge-tests
      • runs when a PR is opened (on the PR'd branch)
      • runs all pytest tests on Linux/Windows/MacOS with Python versions 3.9/3.10/3.11
      • only runs tests if files have changed in the gpyreg/pyvbmc source directory, or pyproject.toml (e.g., not when only documentation has changed)
    2. tests
      • runs twice a month (13th and 28th) on the main branch
      • runs all pytest tests on Linux/Windows/MacOS with Python versions 3.9/3.10/3.11
    3. docs
      • runs on merge to the main branch
      • rebuilds documentation and uploads to gh-pages branch
        1. build
          • runs on merge to main branch (or when called by release).
          • builds the package
        2. release
          • runs when a new GitHub release is created.
          • builds the package and uploads the new version to PyPI.
  2. Add some badges to the README.md
    1. available versions, links to PyPI, Conda and Discussions page, status of tests, build, and docs workflows
  3. Fix some small bugs encountered while testing the workflows.
    1. In particular, test_vp_optimize_2D_g_mixture has been adjusted to pass more consistently.