Skip to content

Commit

Permalink
Merge b738cb0 into bec0d80
Browse files Browse the repository at this point in the history
  • Loading branch information
jessdtate committed Oct 11, 2023
2 parents bec0d80 + b738cb0 commit 1821fda
Show file tree
Hide file tree
Showing 7 changed files with 75 additions and 46 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/pypackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Build Wheel
on: [workflow_call]

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/*

61 changes: 23 additions & 38 deletions .github/workflows/pypublish.yml
Original file line number Diff line number Diff line change
@@ -1,60 +1,45 @@
name: Publish Python distribution to PyPI and TestPyPI
on: push
on:
push:
tags:
- '*'

jobs:
build-wheel:
name: build wheel for testing
uses: ./.github/workflows/pypackage.yml
upload_testpypi:
name: Publish build to TestPyPI
needs: [build-wheel]
runs-on: ubuntu-latest
environment:
name: pypi
url: https://test.pypi.org/p/UncertainSCI
permissions:
id-token: write
steps:
- uses: actions/checkout@v3
- name: Setup Python 3.9
uses: actions/setup-python@v3
- uses: actions/download-artifact@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
name: artifact
path: dist
- name: Upload to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
path: ./dist/*

packages-dir: dist
upload_pypi:
needs: build-wheel
name: Publish build to TestPyPI and PyPI
name: Publish build to PyPI
needs: [build-wheel, upload_testpypi]
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
- name: Upload to TestPyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
repository_url: https://test.pypi.org/legacy/
- name: Upload to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
packages-dir: dist
3 changes: 0 additions & 3 deletions .github/workflows/pythonapp.yml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/testpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
name: Build and Test Package
on: [push, pull_request]

jobs:
buildwheel:
uses: ./.github/workflows/pypackage.yml
8 changes: 4 additions & 4 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
cff-version: 1.0
cff-version: 1.0.1
message: "If you use this software, please cite it as below."
authors:
- family-names: Tate
Expand Down Expand Up @@ -31,6 +31,6 @@ authors:
- family-names: Narayan
given-names: Akil
orcid: https://orcid.org/0000-0002-5914-4207
title: SCIInstitute/UncertainSCI: v1.0
version: v1.0
date-released: 2023-08-08
title: UncertainSCI: A Python Package for Noninvasive Parametric Uncertainty Quantification of Simulation Pipelines
version: v1.0.1
date-released: 2023-10-11
2 changes: 2 additions & 0 deletions paper/paper.bib
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}
Expand All @@ -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}
}
Expand Down
2 changes: 1 addition & 1 deletion paper/paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 1821fda

Please sign in to comment.