-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
- Loading branch information
Showing
8 changed files
with
76 additions
and
47 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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(), | ||
|