Skip to content

Commit

Permalink
Merge pull request #179 from ing-bank/develop
Browse files Browse the repository at this point in the history
Semantic release CI
  • Loading branch information
sbrugman authored Nov 24, 2021
2 parents 70917d2 + 840ea18 commit 70be1f8
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 134 deletions.
45 changes: 0 additions & 45 deletions .github/workflows/pypi.yml

This file was deleted.

32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
# Creates a draft release when a new tag is pushed
name: Release
name: Semantic Release

on:
push:
tags:
- "v*.*.*"
branches:
- master

jobs:
build:
release:
runs-on: ubuntu-latest
concurrency: release

steps:
- name: Checkout
uses: actions/checkout@v2
- name: Get the version
id: get_version
run: echo ::set-output name=VERSION::${GITHUB_REF/refs\/tags\//}
- name: Release
uses: softprops/action-gh-release@v1
with:
name: "popmon ${{ steps.get_version.outputs.VERSION }}"
body: "Release notes are available [here](https://github.com/ing-bank/popmon/blob/master/CHANGELOG.md)."
draft: true
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Python Semantic Release
uses: relekang/python-semantic-release@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
repository_username: __token__
repository_password: ${{ secrets.PYPI_TOKEN }}
7 changes: 3 additions & 4 deletions .readthedocs.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
# See: https://docs.readthedocs.io/en/latest/yaml-config.html
# .readthedocs.yml
# See: https://docs.readthedocs.io/en/latest/config-file/v2.html
version: 2

build:
image: latest

python:
version: 3.8
setup_py_install: true
version: '3.8'
install:
- requirements: docs/requirements.txt
16 changes: 0 additions & 16 deletions .versionrc.json

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Release notes

<!--next-version-placeholder-->

## [v0.4.4](https://github.com/ing-bank/popmon/compare/v0.4.3...v0.4.4) (2021-10-22)


Expand Down
37 changes: 0 additions & 37 deletions bump.py

This file was deleted.

13 changes: 0 additions & 13 deletions package.json

This file was deleted.

2 changes: 1 addition & 1 deletion popmon/version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
"""THIS FILE IS AUTO-GENERATED BY SETUP.PY."""

version = "0.5.0"
version = "0.4.4"
8 changes: 7 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,10 @@ markers = ["spark"]
"spark.executor.instances" = 1
"master" = "local[*]"
"spark.driver.host" = "192.168.1.78"
"spark.sql.catalogImplementation" = "in-memory"
"spark.sql.catalogImplementation" = "in-memory"

[tool.semantic_release]
version_variable = [
"setup.py:__version__",
"popmon/version.py:version",
]
4 changes: 3 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from setuptools import find_packages, setup

__version__ = "0.4.4"

with open("requirements.txt") as f:
REQUIREMENTS = f.read().splitlines()

Expand All @@ -15,7 +17,7 @@ def setup_package() -> None:
"""
setup(
name="popmon",
version="0.4.4",
version=__version__,
url="https://github.com/ing-bank/popmon",
license="MIT",
author="ING Wholesale Banking Advanced Analytics",
Expand Down

0 comments on commit 70be1f8

Please sign in to comment.