Skip to content

Commit 5360c84

Browse files
authored
Deploy testing (#114)
* split up workflows to make checks easier * bump verson for testing * building workflow dependencies * homogenizing some of the workflows * bump version number, add missing doi * another doi * update cif to match zenodo. typo in affiliations * some mistakes in workflows * working out inheritance * try without forwarding * trying to include token * old api for tesst pypi * typo * disable other tests for now * trying to get the right files * try to find the artefact * bumping version * moveing dir * some cleanup. separating and Upgrading test.pypi * bump versions * actions finally working, cleaning up, bump version * bumping version for release * update cif file * bump version for pypi * another version bump
1 parent bec0d80 commit 5360c84

File tree

8 files changed

+76
-47
lines changed

8 files changed

+76
-47
lines changed

.github/workflows/pypackage.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Build Wheel
2+
on: [workflow_call]
3+
4+
jobs:
5+
build-wheel:
6+
name: Build Wheel for Testing
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- name: Setup Python 3.9
11+
uses: actions/setup-python@v3
12+
with:
13+
python-version: 3.9
14+
- name: Install pypa/build
15+
run: >-
16+
python -m
17+
pip install
18+
build
19+
--user
20+
- name: Build a binary wheel and a source tarball
21+
run: >-
22+
python -m
23+
build
24+
--sdist
25+
--wheel
26+
--outdir dist/
27+
- name: install check-wheel-contents
28+
run: >-
29+
python3 -m
30+
pip install
31+
check-wheel-contents
32+
- name: check wheel
33+
run: >-
34+
check-wheel-contents
35+
dist/*.whl
36+
- uses: actions/upload-artifact@v3
37+
with:
38+
path: ./dist/*
39+

.github/workflows/pypublish.yml

Lines changed: 23 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,45 @@
11
name: Publish Python distribution to PyPI and TestPyPI
2-
on: push
2+
on:
3+
push:
4+
tags:
5+
- '*'
36

47
jobs:
58
build-wheel:
6-
name: build wheel for testing
9+
uses: ./.github/workflows/pypackage.yml
10+
upload_testpypi:
11+
name: Publish build to TestPyPI
12+
needs: [build-wheel]
713
runs-on: ubuntu-latest
14+
environment:
15+
name: pypi
16+
url: https://test.pypi.org/p/UncertainSCI
17+
permissions:
18+
id-token: write
819
steps:
9-
- uses: actions/checkout@v3
10-
- name: Setup Python 3.9
11-
uses: actions/setup-python@v3
20+
- uses: actions/download-artifact@v3
1221
with:
13-
python-version: 3.9
14-
- name: Install pypa/build
15-
run: >-
16-
python -m
17-
pip install
18-
build
19-
--user
20-
- name: Build a binary wheel and a source tarball
21-
run: >-
22-
python -m
23-
build
24-
--sdist
25-
--wheel
26-
--outdir dist/
27-
- name: install check-wheel-contents
28-
run: >-
29-
python3 -m
30-
pip install
31-
check-wheel-contents
32-
- name: check wheel
33-
run: >-
34-
check-wheel-contents
35-
dist/*.whl
36-
- uses: actions/upload-artifact@v3
22+
name: artifact
23+
path: dist
24+
- name: Upload to TestPyPI
25+
uses: pypa/gh-action-pypi-publish@release/v1
3726
with:
38-
path: ./dist/*
39-
27+
packages-dir: dist
4028
upload_pypi:
41-
needs: build-wheel
42-
name: Publish build to TestPyPI and PyPI
29+
name: Publish build to PyPI
30+
needs: [build-wheel, upload_testpypi]
4331
runs-on: ubuntu-latest
4432
environment:
4533
name: pypi
4634
url: https://pypi.org/p/UncertainSCI
4735
permissions:
4836
id-token: write
49-
if: startsWith(github.event.ref, 'refs/tags')
5037
steps:
5138
- uses: actions/download-artifact@v3
5239
with:
5340
name: artifact
5441
path: dist
55-
- name: Upload to TestPyPI
56-
uses: pypa/gh-action-pypi-publish@release/v1
57-
with:
58-
repository_url: https://test.pypi.org/legacy/
5942
- name: Upload to PyPI
6043
uses: pypa/gh-action-pypi-publish@release/v1
44+
with:
45+
packages-dir: dist

.github/workflows/pythonapp.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
# This workflow will install Python dependencies, run tests and lint with a single version of Python
2-
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
41
name: Build
52

63
on: [push, pull_request]

.github/workflows/testpackage.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Build and Test Package
2+
on: [push, pull_request]
3+
4+
jobs:
5+
buildwheel:
6+
uses: ./.github/workflows/pypackage.yml

CITATION.cff

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
cff-version: 1.0
1+
cff-version: 1.1.0
22
message: "If you use this software, please cite it as below."
33
authors:
44
- family-names: Tate
@@ -31,6 +31,6 @@ authors:
3131
- family-names: Narayan
3232
given-names: Akil
3333
orcid: https://orcid.org/0000-0002-5914-4207
34-
title: SCIInstitute/UncertainSCI: v1.0
35-
version: v1.0
36-
date-released: 2023-08-08
34+
title: UncertainSCI: A Python Package for Noninvasive Parametric Uncertainty Quantification of Simulation Pipelines
35+
version: v1.0.1
36+
date-released: 2023-10-11

paper/paper.bib

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ @Article{JDT:Xu2014
149149
pages = "529--537",
150150
title = "Variational Bayesian electrophysiological imaging of
151151
myocardial infarction.",
152+
doi = "10.1007/978-3-319-10470-6_66",
152153
volume = "17",
153154
year = "2014",
154155
}
@@ -159,6 +160,7 @@ @book{ACN:Xiu2010
159160
shorttitle = {Numerical {Methods} for {Stochastic} {Computations}},
160161
publisher = {Princeton University Press},
161162
author = {Xiu, D.},
163+
doi = {10.1007/978-3-319-10470-6_66},
162164
month = jul,
163165
year = {2010}
164166
}

paper/paper.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ authors:
3232
affiliation: 6
3333
- name: Rob S MacLeod
3434
orcid: 0000-0002-0000-0356
35-
affiliation: "1, 3"
35+
affiliation: "1, 3, 4"
3636
- name: Akil Narayan
3737
orcid: 0000-0002-5914-4207
3838
affiliation: "1, 2"

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
setup(
77
name='UncertainSCI',
8-
version='1.0.1',
8+
version='1.0.1.1',
99
author='UncertainSCI Developers',
1010
author_email='[email protected]',
1111
packages=find_packages(),

0 commit comments

Comments
 (0)