-
Notifications
You must be signed in to change notification settings - Fork 11
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 #100 from getindata/release-0.8.0
Release 0.8.0
- Loading branch information
Showing
19 changed files
with
687 additions
and
369 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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
[bumpversion] | ||
current_version = 0.7.0 | ||
current_version = 0.8.0 | ||
|
||
[bumpversion:file:pyproject.toml] | ||
|
||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test | ||
name: Test & Publish | ||
|
||
on: | ||
push: | ||
|
@@ -98,7 +98,7 @@ jobs: | |
|
||
e2e_tests: | ||
runs-on: ubuntu-latest | ||
needs: [unit_tests, sonarcloud, codeql] | ||
needs: [unit_tests, sonarcloud] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
|
@@ -167,4 +167,63 @@ jobs: | |
run: | | ||
cd ./spaceflights | ||
export KEDRO_CONFIG_COMMIT_ID=$GITHUB_SHA | ||
kedro vertexai run-once --wait-for-completion | ||
kedro vertexai run-once --wait-for-completion | ||
publish: | ||
if: github.event.pull_request == null && github.ref == 'refs/heads/master' | ||
needs: [ e2e_tests, codeql ] | ||
runs-on: ubuntu-latest | ||
env: | ||
PYTHON_PACKAGE: kedro_vertexai | ||
steps: | ||
- name: Checkout the repo | ||
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # necessary to enable merging, all the history is needed | ||
- name: Set up Python 3.8 | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.8" | ||
- name: Build package dist from source # A better way will be : https://packaging.python.org/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ but pep 517 is still marked as experimental | ||
run: | | ||
pip install poetry | ||
poetry build | ||
- name: Merge back to develop # we have to set the config first on a fresh machine | ||
run: | | ||
git config user.name github-actions | ||
git config user.email [email protected] | ||
git checkout -b develop --track origin/develop | ||
git merge master | ||
git push | ||
- name: Set dynamically package version as output variable # see https://github.com/actions/create-release/issues/39 | ||
# see https://docs.github.com/en/free-pro-team@latest/actions/reference/workflow-commands-for-github-actions#setting-an-environment-variable | ||
id: set_package_version | ||
run: | | ||
echo "::set-output name=PACKAGE_VERSION::$(cat $PYTHON_PACKAGE/__init__.py | grep -Po '\d+\.\d+\.\d+')" | ||
- name: Create temporary file with the body content for the release | ||
run: | | ||
grep -Poz "## \[${{steps.set_package_version.outputs.PACKAGE_VERSION}}] - \d{4}-\d{2}-\d{2}[\S\s]+?(?=## \[\d+\.\d+\.\d+\]|\[.+\]:)" CHANGELOG.md > release_body.md | ||
- name: Create Release # https://github.com/actions/create-release | ||
id: create_release | ||
uses: actions/[email protected] | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token | ||
with: | ||
tag_name: ${{ steps.set_package_version.outputs.PACKAGE_VERSION }} | ||
release_name: Release ${{ steps.set_package_version.outputs.PACKAGE_VERSION }} | ||
body_path: ./release_body.md | ||
draft: false | ||
prerelease: false | ||
- name: Rollback Release in case of run failure | ||
if: failure() && steps.create_release.outputs.id != '' | ||
uses: author/action-rollback@stable | ||
with: | ||
# Using a known release ID | ||
release_id: ${{ steps.create_release.outputs.id }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish distribution to PyPI # official action from python maintainers | ||
uses: pypa/gh-action-pypi-publish@master | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PYPI_PASSWORD }} | ||
verbose: true # trace if the upload fails |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -109,3 +109,5 @@ GCS | |
dataset | ||
IAM | ||
mlflow's | ||
CPUs | ||
GPUs |
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 |
---|---|---|
@@ -1 +1 @@ | ||
__version__ = "0.7.0" | ||
__version__ = "0.8.0" |
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.