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 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e2fdc3e2..048f9bee 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 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 }} 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 }} 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 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 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" }, ]