Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy testing #114

Merged
merged 26 commits into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
296a47e
split up workflows to make checks easier
jessdtate Sep 20, 2023
8853693
bump verson for testing
jessdtate Sep 20, 2023
181f952
building workflow dependencies
jessdtate Oct 11, 2023
b7a42ea
Merge branch 'master' into deploy_testing
jessdtate Oct 11, 2023
fb3b8de
homogenizing some of the workflows
jessdtate Oct 11, 2023
7448873
bump version number, add missing doi
jessdtate Oct 11, 2023
f2f2a26
another doi
jessdtate Oct 11, 2023
ab296d3
update cif to match zenodo. typo in affiliations
jessdtate Oct 11, 2023
0617fff
some mistakes in workflows
jessdtate Oct 11, 2023
f5cc543
working out inheritance
jessdtate Oct 11, 2023
b805b05
try without forwarding
jessdtate Oct 11, 2023
6e66bd9
trying to include token
jessdtate Oct 11, 2023
906963c
old api for tesst pypi
jessdtate Oct 11, 2023
2567120
typo
jessdtate Oct 11, 2023
adad903
disable other tests for now
jessdtate Oct 11, 2023
f99f3f4
trying to get the right files
jessdtate Oct 11, 2023
40d04e4
try to find the artefact
jessdtate Oct 11, 2023
c160b3f
bumping version
jessdtate Oct 11, 2023
3554a58
moveing dir
jessdtate Oct 11, 2023
0f2b8fd
some cleanup. separating and Upgrading test.pypi
jessdtate Oct 11, 2023
aeccc58
bump versions
jessdtate Oct 11, 2023
c0d62bd
actions finally working, cleaning up, bump version
jessdtate Oct 11, 2023
b738cb0
bumping version for release
jessdtate Oct 11, 2023
97dd964
update cif file
jessdtate Oct 12, 2023
3bd6e7d
bump version for pypi
jessdtate Oct 12, 2023
c269c4b
another version bump
jessdtate Oct 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.1.0
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
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name='UncertainSCI',
version='1.0.1',
version='1.0.1.1',
author='UncertainSCI Developers',
author_email='[email protected]',
packages=find_packages(),
Expand Down
Loading