From bdc9bff8f95ccb1a396cae8733b6c39b2bf4c641 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 10:49:38 +0200 Subject: [PATCH 1/8] add release drafter.yml --- .github/release-drafter.yml | 43 +++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/release-drafter.yml diff --git a/.github/release-drafter.yml b/.github/release-drafter.yml new file mode 100644 index 00000000..4706511f --- /dev/null +++ b/.github/release-drafter.yml @@ -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 From 72033e82e4857586585f18468865db7a1d6b9cc3 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 10:52:46 +0200 Subject: [PATCH 2/8] add release drafter to workflows --- .github/workflows/release_drafter.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/release_drafter.yml diff --git a/.github/workflows/release_drafter.yml b/.github/workflows/release_drafter.yml new file mode 100644 index 00000000..decfe7c1 --- /dev/null +++ b/.github/workflows/release_drafter.yml @@ -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 }} From c3165bdf395f3fe9c1ad23018d7e5aef58d01b71 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 10:56:26 +0200 Subject: [PATCH 3/8] add changelog --- docs/changes/162.feature.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/changes/162.feature.rst diff --git a/docs/changes/162.feature.rst b/docs/changes/162.feature.rst new file mode 100644 index 00000000..c8e0e910 --- /dev/null +++ b/docs/changes/162.feature.rst @@ -0,0 +1 @@ +add realese drafter to workflow From 6f1ae4870d3276dc14f57bf37e1b63a8208469d6 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 12:24:16 +0200 Subject: [PATCH 4/8] add deploy yml --- .github/workflows/deploy.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 00000000..cf5f5997 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -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 }} From 209dc3fd31b83b654e88e0ff4d6008fcc6949188 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 12:26:40 +0200 Subject: [PATCH 5/8] fix codecov --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2fdc3e2..7a05ca9e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -73,6 +73,7 @@ jobs: py.test --cov radionets --cov-report=xml - uses: codecov/codecov-action@v3 + if: contains(matrix.extra-args, 'codecov') docs: runs-on: ubuntu-latest From 47d239b752ebf3c382a1a2e4dac1e7dda7fb1c9d Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 12:29:03 +0200 Subject: [PATCH 6/8] add bugfix changelog --- docs/changes/162.bugfix.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 docs/changes/162.bugfix.rst diff --git a/docs/changes/162.bugfix.rst b/docs/changes/162.bugfix.rst new file mode 100644 index 00000000..1ffc8efc --- /dev/null +++ b/docs/changes/162.bugfix.rst @@ -0,0 +1 @@ +only upload codecov report when codecov was executed From 4f6271afb2c7a08cf8036b748b29406cb2c1897e Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 14:28:58 +0200 Subject: [PATCH 7/8] delete name in cov --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7a05ca9e..048f9bee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -70,7 +70,7 @@ 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') From 86d296cfed97dc93e5f61859cf7c082f55f3c354 Mon Sep 17 00:00:00 2001 From: Kevin2 Date: Thu, 3 Aug 2023 14:35:47 +0200 Subject: [PATCH 8/8] update version --- pyproject.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyproject.toml b/pyproject.toml index 881555c1..9133b1a1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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="kevin3.schmidt@tu-dortmund.de" }, ]