-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MRG: Merge pull request #2 from aerosense-ai/enhancement/simplify-fin…
…alisation Simplify analysis finalisation
- Loading branch information
Showing
8 changed files
with
140 additions
and
11 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 |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: python-ci | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- main | ||
|
||
jobs: | ||
check-semantic-version: | ||
if: "!contains(github.event.head_commit.message, 'skipci')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Set fetch-depth to 0 to fetch all tags (necessary for git-mkver to determine the correct semantic version). | ||
fetch-depth: 0 | ||
- uses: actions/setup-python@v2 | ||
- name: Install git-mkver | ||
run: | | ||
curl -L https://github.com/idc101/git-mkver/releases/download/v1.2.1/git-mkver-linux-amd64-1.2.1.tar.gz \ | ||
| tar xvz \ | ||
&& sudo mv git-mkver /usr/local/bin | ||
- name: Install semantic version checker | ||
run: pip install git+https://github.com/octue/conventional-commits | ||
- name: Check version | ||
run: check-semantic-version setup.py |
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 |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# This workflow releases a new version of the package. | ||
|
||
name: Release | ||
|
||
# Only trigger when a pull request into main branch is merged. | ||
on: | ||
pull_request: | ||
types: [closed] | ||
branches: | ||
- main | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Get package version | ||
run: echo "PACKAGE_VERSION=$(python setup.py --version)" >> $GITHUB_ENV | ||
|
||
- name: Create Release | ||
uses: actions/create-release@v1 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, no need to create your own. | ||
with: | ||
tag_name: ${{ env.PACKAGE_VERSION }} | ||
release_name: ${{ github.event.pull_request.title }} | ||
body: ${{ github.event.pull_request.body }} | ||
draft: false | ||
prerelease: false |
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# This workflow updates the pull request description with an auto-generated section containing the categorised commit | ||
# message headers of the commits since the last pull request merged into main. The auto generated section is enveloped | ||
# between two comments: "<!--- START AUTOGENERATED NOTES --->" and "<!--- END AUTOGENERATED NOTES --->". Anything | ||
# outside these in the description is left untouched. Auto-generated updates can be skipped for a commit if | ||
# "<!--- SKIP AUTOGENERATED NOTES --->" is added to the pull request description. | ||
|
||
name: update-pull-request | ||
|
||
# Only trigger for pull requests into main branch. | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
description: | ||
if: "!contains(github.event.pull_request.body, '<!--- SKIP AUTOGENERATED NOTES --->')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
# Set fetch-depth to 0 to fetch all commit history (necessary for compiling pull request description). | ||
fetch-depth: 0 | ||
- name: Install release note compiler | ||
run: pip install git+https://github.com/octue/conventional-commits | ||
- name: Compile new pull request description | ||
run: | | ||
echo 'PULL_REQUEST_NOTES<<EOF' >> $GITHUB_ENV | ||
echo "$(compile-release-notes PULL_REQUEST_START --pull-request-url=${{ github.event.pull_request.url }} --api-token=${{ secrets.GITHUB_TOKEN }})" >> $GITHUB_ENV | ||
echo EOF >> $GITHUB_ENV | ||
- name: Update pull request body | ||
uses: riskledger/update-pr-description@v2 | ||
with: | ||
body: ${{ env.PULL_REQUEST_NOTES }} | ||
token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
@@ -0,0 +1,41 @@ | ||
tagPrefix: "" | ||
defaults { | ||
tag: false | ||
tagMessageFormat: "Release/{Tag}" | ||
preReleaseFormat: "RC{PreReleaseNumber}" | ||
buildMetaDataFormat: "{Branch}.{ShortHash}" | ||
includeBuildMetaData: false | ||
whenNoValidCommitMessages: IncrementPatch | ||
patches: [setup.py] | ||
} | ||
|
||
patches: [ | ||
{ | ||
name: setup.py | ||
filePatterns: ["setup.py"] | ||
replacements: [ | ||
{ | ||
find: "version=\"{VersionRegex}\"" | ||
replace: "version=\"{Version}\"" | ||
} | ||
] | ||
} | ||
] | ||
|
||
commitMessageActions: [ | ||
# Disable major version increments while package is still in beta (i.e. keep the version below 1.0.0). | ||
{ | ||
pattern: "BREAKING CHANGE" | ||
action: IncrementMinor | ||
} | ||
{ | ||
pattern: "BREAKING-CHANGE" | ||
action: IncrementMinor | ||
} | ||
|
||
# All new features require a minor version increase. | ||
{ | ||
pattern: "FEA:" | ||
action: IncrementMinor | ||
} | ||
] |
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 |
---|---|---|
|
@@ -3,11 +3,11 @@ | |
|
||
setup( | ||
name="turbsim-service", | ||
version="0.1.0", | ||
version="0.1.1", | ||
author="cortadocodes <[email protected]>", | ||
py_modules=["app"], | ||
install_requires=[ | ||
"coolname>=1.1,<2", | ||
"octue==0.26.0", | ||
"octue==0.35.1", | ||
], | ||
) |
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