diff --git a/.github/workflows/pypackage.yml b/.github/workflows/pypackage.yml new file mode 100644 index 0000000..93c687a --- /dev/null +++ b/.github/workflows/pypackage.yml @@ -0,0 +1,47 @@ +name: Build Wheel +on: + workflow_call: + inputs: + config-path: + required: true + type: string + secrets: + envPAT: + required: true + +jobs: + build-wheel: + name: Build Wheel for Testing + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Setup Python 3.9 + uses: actions/setup-python@v3 + with: + python-version: 3.9 + - name: Install pypa/build + run: >- + python -m + pip install + build + --user + - name: Build a binary wheel and a source tarball + run: >- + python -m + build + --sdist + --wheel + --outdir dist/ + - name: install check-wheel-contents + run: >- + python3 -m + pip install + check-wheel-contents + - name: check wheel + run: >- + check-wheel-contents + dist/*.whl + - uses: actions/upload-artifact@v3 + with: + path: ./dist/* + diff --git a/.github/workflows/pypublish.yml b/.github/workflows/pypublish.yml index 03ffcc9..9e58ec3 100644 --- a/.github/workflows/pypublish.yml +++ b/.github/workflows/pypublish.yml @@ -1,57 +1,29 @@ name: Publish Python distribution to PyPI and TestPyPI -on: push +on: + push: + tags: + - '*' jobs: build-wheel: - name: build wheel for testing - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - name: Setup Python 3.9 - uses: actions/setup-python@v3 - with: - python-version: 3.9 - - name: Install pypa/build - run: >- - python -m - pip install - build - --user - - name: Build a binary wheel and a source tarball - run: >- - python -m - build - --sdist - --wheel - --outdir dist/ - - name: install check-wheel-contents - run: >- - python3 -m - pip install - check-wheel-contents - - name: check wheel - run: >- - check-wheel-contents - dist/*.whl - - uses: actions/upload-artifact@v3 - with: - path: ./dist/* - + uses: ./.github/workflows/pypackage.yml upload_pypi: - needs: build-wheel name: Publish build to TestPyPI and PyPI + needs: [build-wheel] runs-on: ubuntu-latest environment: name: pypi url: https://pypi.org/p/UncertainSCI permissions: id-token: write - if: startsWith(github.event.ref, 'refs/tags') steps: - uses: actions/download-artifact@v3 with: name: artifact path: dist + configuration-path: ${{ inputs.config-path }} + secrets: + envPAT: ${{ secrets.envPAT }} - name: Upload to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1 with: diff --git a/.github/workflows/pythonapp.yml b/.github/workflows/pythonapp.yml index 5eb5051..bde1cc6 100644 --- a/.github/workflows/pythonapp.yml +++ b/.github/workflows/pythonapp.yml @@ -1,6 +1,3 @@ -# This workflow will install Python dependencies, run tests and lint with a single version of Python -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - name: Build on: [push, pull_request] diff --git a/.github/workflows/testpackage.yml b/.github/workflows/testpackage.yml new file mode 100644 index 0000000..9359ff3 --- /dev/null +++ b/.github/workflows/testpackage.yml @@ -0,0 +1,7 @@ +name: Build and Test Package +on: [push, pull_request] + +jobs: + buildwheel: + uses: ./.github/workflows/pypackage.yml + diff --git a/CITATION.cff b/CITATION.cff index 09b2d64..e5fb36a 100644 --- a/CITATION.cff +++ b/CITATION.cff @@ -31,6 +31,6 @@ authors: - family-names: Narayan given-names: Akil orcid: https://orcid.org/0000-0002-5914-4207 -title: SCIInstitute/UncertainSCI: v1.0 +title: UncertainSCI: A Python Package for Noninvasive Parametric Uncertainty Quantification of Simulation Pipelines version: v1.0 date-released: 2023-08-08 diff --git a/paper/paper.bib b/paper/paper.bib index d708a49..1402bb5 100644 --- a/paper/paper.bib +++ b/paper/paper.bib @@ -149,6 +149,7 @@ @Article{JDT:Xu2014 pages = "529--537", title = "Variational Bayesian electrophysiological imaging of myocardial infarction.", + doi = "10.1007/978-3-319-10470-6_66", volume = "17", year = "2014", } @@ -159,6 +160,7 @@ @book{ACN:Xiu2010 shorttitle = {Numerical {Methods} for {Stochastic} {Computations}}, publisher = {Princeton University Press}, author = {Xiu, D.}, + doi = {10.1007/978-3-319-10470-6_66}, month = jul, year = {2010} } diff --git a/paper/paper.md b/paper/paper.md index 35c81b1..8a3514b 100644 --- a/paper/paper.md +++ b/paper/paper.md @@ -32,7 +32,7 @@ authors: affiliation: 6 - name: Rob S MacLeod orcid: 0000-0002-0000-0356 - affiliation: "1, 3" + affiliation: "1, 3, 4" - name: Akil Narayan orcid: 0000-0002-5914-4207 affiliation: "1, 2" diff --git a/setup.py b/setup.py index be740e4..ed1b882 100644 --- a/setup.py +++ b/setup.py @@ -5,7 +5,7 @@ setup( name='UncertainSCI', - version='1.0.1', + version='1.0.1rc2', author='UncertainSCI Developers', author_email='uncertainsci@sci.utah.edu', packages=find_packages(),