Skip to content

Commit

Permalink
Further ci_corrections (#24)
Browse files Browse the repository at this point in the history
* Corrected the build yaml file

* bump version to 0.9.2

* Further correction s following #23 to build structure

* bump version to 0.9.3

* Corrected bump version

* Corrected zenodo README
  • Loading branch information
williamjameshandley authored Nov 25, 2023
1 parent 1aa34ea commit 687d139
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ jobs:
needs: pypi-release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Get version number
run: |
VERSION="$(grep ':Version:' README.rst | awk '{print $2}')"
Expand Down
8 changes: 4 additions & 4 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@ lsbi: Linear Simulation Based Inference
=======================================
:lsbi: Linear Simulation Based Inference
:Author: Will Handley & David Yallup
:Version: 0.9.2
:Version: 0.9.3
:Homepage: https://github.com/handley-lab/lsbi
:Documentation: http://lsbi.readthedocs.io/

.. image:: https://github.com/handley-lab/lsbi/workflows/CI/badge.svg?branch=master
:target: https://github.com/handley-lab/lsbi/actions?query=workflow%3ACI+branch%3Amaster
.. image:: https://github.com/handley-lab/lsbi/actions/workflows/unittests.yaml/badge.svg?branch=master
:target: https://github.com/handley-lab/lsbi/actions/workflows/unittests.yaml?query=branch%3Amaster
:alt: Build Status
.. image:: https://codecov.io/gh/handley-lab/lsbi/branch/master/graph/badge.svg
:target: https://codecov.io/gh/handley-lab/lsbi
Expand All @@ -20,7 +20,7 @@ lsbi: Linear Simulation Based Inference
:target: https://badge.fury.io/py/lsbi
:alt: PyPi location
.. image:: https://zenodo.org/badge/705730277.svg
:target: https://zenodo.org/doi/10.5281/zenodo.100.9.26
:target: https://zenodo.org/doi/10.5281/zenodo.10009816
:alt: Permanent DOI for this release
.. image:: https://img.shields.io/badge/license-MIT-blue.svg
:target: https://github.com/handley-lab/lsbi/blob/master/LICENSE
Expand Down
4 changes: 3 additions & 1 deletion bin/bump_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@

new_version = version.parse(f"{major}.{minor}.{micro}")

sed_string = f"s/{current_version}/{new_version}/g".replace(".", "\.")

for f in [vfile, README]:
run("sed", "-i", f"s/{current_version}/{new_version}/g", f)
run("sed", "-i", sed_string, f)

run("git", "add", vfile, README)
run("git", "commit", "-m", f"bump version to {new_version}")
2 changes: 1 addition & 1 deletion lsbi/_version.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.9.2"
__version__ = "0.9.3"

0 comments on commit 687d139

Please sign in to comment.