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

Automatic releases #162

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
43 changes: 43 additions & 0 deletions .github/release-drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
categories:
- title: "New features"
labels:
- "new functionality"
- "enhancement"
- title: "API Changes"
labels:
- "Breaking change"
- "API change"
- title: "Data Model Changes"
labels:
- "data model change"
- title: "Bug Fixes"
labels:
- "bug"
- "fix"
- title: "Refactoring and Optimization"
labels:
- "optimization"
- "refactoring"
- title: "Maintenance"
labels:
- "build"
- "documentation"
- "installation"
- "maintenance"
change-template: "- $TITLE (#$NUMBER) @$AUTHOR"
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.
template: |

## Summary

...

## Contributors

$CONTRIBUTORS

## What has changed since $PREVIOUS_TAG

Pull-requests containing changes of multiple nature are repeated.

$CHANGES
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,10 @@ jobs:

- name: Tests
run: |
py.test --cov radionets --cov-report=xml
py.test --cov --cov-report=xml

- uses: codecov/codecov-action@v3
if: contains(matrix.extra-args, 'codecov')

docs:
runs-on: ubuntu-latest
Expand Down
32 changes: 32 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy to PyPi

on:
push:
tags:
- 'v*'

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

# make sure we have version info
- run: git fetch --tags

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8

- name: Install dependencies
run: |
python --version
pip install -U build
python -m build

- name: Publish package
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_password }}
17 changes: 17 additions & 0 deletions .github/workflows/release_drafter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Release Drafter

on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- main


jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1 change: 1 addition & 0 deletions docs/changes/162.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
only upload codecov report when codecov was executed
1 change: 1 addition & 0 deletions docs/changes/162.feature.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
add realese drafter to workflow
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "radionets"
version = "0.2.0"
version = "0.3.1"
authors = [
{ name="Kevin Schmidt", email="[email protected]" },
]
Expand Down