-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #73 from rl-institut/deployment-test
Add workflow to publish on Test PyPI
- Loading branch information
Showing
33 changed files
with
339 additions
and
171 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,33 @@ | ||
# SPDX-FileCopyrightText: : 2024 Ludwig Hülk <https://github.com/Ludee> © Reiner Lemoine Institut | ||
# SPDX-License-Identifier: MIT | ||
|
||
[tool.bumpversion] | ||
current_version = "0.3.0" | ||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)" | ||
serialize = ["{major}.{minor}.{patch}"] | ||
search = "{current_version}" | ||
replace = "{new_version}" | ||
regex = false | ||
ignore_missing_version = false | ||
ignore_missing_files = false | ||
tag = false | ||
sign_tags = false | ||
tag_name = "v{new_version}" | ||
tag_message = "Bump version: {current_version} → {new_version}" | ||
allow_dirty = false | ||
commit = true | ||
message = "Bump version: {current_version} → {new_version}" | ||
commit_args = "" | ||
|
||
[tool.bumpversion.parts.pre_l] | ||
values = ["dev", "rc", "final"] | ||
optional_value = "final" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "pyproject.toml" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "CITATION.cff" | ||
|
||
[[tool.bumpversion.files]] | ||
filename = "uv.lock" |
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,41 @@ | ||
# SPDX-FileCopyrightText: 2024 Ludwig Hülk <@Ludee> © Reiner Lemoine Institut | ||
# SPDX-License-Identifier: MIT | ||
|
||
name: Build and publish on Test PyPI | ||
|
||
on: | ||
push: | ||
branches: | ||
- deployment-test | ||
- 'release-*' | ||
|
||
jobs: | ||
build-n-publish: | ||
name: Build and publish on Test PyPI | ||
runs-on: ubuntu-latest | ||
environment: pypi-publish | ||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.10" | ||
- name: Install pypa/build | ||
run: >- | ||
python3 -m | ||
pip install | ||
build | ||
--user | ||
- name: Build binary wheel and source tarball | ||
run: >- | ||
python3 -m | ||
build | ||
--sdist | ||
--wheel | ||
--outdir dist/ | ||
- name: Publish distribution to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
password: ${{ secrets.PYPI_TEST }} | ||
repository-url: https://test.pypi.org/legacy/ | ||
verbose: true |
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
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
Oops, something went wrong.