-
Notifications
You must be signed in to change notification settings - Fork 23
ci: introduce Release Please and PR linting workflows #38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
federicobond
merged 7 commits into
open-feature:main
from
thisthat:ci/add-release-please
Feb 22, 2024
Merged
Changes from all commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
98c3475
initial release please config
beeme1mr fd02350
removed extra whitespace
beeme1mr 51708ff
removed extra whitespace
beeme1mr 032fd32
removed extra whitespace
beeme1mr e8e7cda
ci: add release-please
thisthat 63c3847
Merge branch 'main' into ci/add-release-please
beeme1mr bc93bcc
revert changes in CONTRIBUTING
thisthat File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,66 @@ | ||
| name: Run Release Please | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
federicobond marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| inputs: | ||
|
|
||
| push: | ||
| branches: | ||
| - main | ||
|
|
||
| jobs: | ||
| release-please: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| # Release-please creates a PR that tracks all changes | ||
| steps: | ||
| - uses: google-github-actions/release-please-action@v3 | ||
| id: release | ||
| with: | ||
| command: manifest | ||
| token: ${{secrets.GITHUB_TOKEN}} | ||
| default-branch: main | ||
| signoff: "OpenFeature Bot <109696520+openfeaturebot@users.noreply.github.com>" | ||
| - name: Dump Release Please Output | ||
| env: | ||
| RELEASE_PLEASE_OUTPUT: ${{ toJson(steps.release.outputs) }} | ||
| run: | | ||
| echo "$RELEASE_PLEASE_OUTPUT" | ||
federicobond marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| outputs: | ||
| release_created: ${{ steps.release.outputs.releases_created }} | ||
| all: ${{ toJSON(steps.release.outputs) }} | ||
| paths_released: ${{ steps.release.outputs.paths_released }} | ||
|
|
||
| pypi-release: | ||
| needs: release-please | ||
| runs-on: ubuntu-latest | ||
| if: ${{ needs.release-please.outputs.release_created }} | ||
| strategy: | ||
| matrix: | ||
| path: ${{ fromJSON(needs.release-please.outputs.paths_released) }} | ||
| environment: release | ||
| permissions: | ||
| # IMPORTANT: this permission is mandatory for trusted publishing to pypi | ||
| id-token: write | ||
| container: | ||
| image: "python:3.12" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| submodules: recursive | ||
|
|
||
| - name: Upgrade pip | ||
| run: pip install --upgrade pip | ||
|
|
||
| - name: Install hatch | ||
| run: pip install hatch | ||
|
|
||
| - name: Build a binary wheel and a source tarball | ||
| run: hatch build | ||
| working-directory: ${{ matrix.path }} | ||
|
|
||
| - name: Publish a Python distribution to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| with: | ||
| packages-dir: ${{ matrix.path }} | ||
This file contains hidden or 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,4 @@ | ||
| { | ||
| "hooks/openfeature-hooks-opentelemetry": "0.1.0", | ||
| "providers/openfeature-provider-flagd": "0.1.0" | ||
| } |
This file contains hidden or 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 hidden or 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,5 @@ | ||
| # OpenFeature Python Hooks | ||
|
|
||
| Hooks are a mechanism whereby application developers can add arbitrary behavior to flag evaluation. | ||
| They operate similarly to middleware in many web frameworks. Please see the | ||
| [spec](https://openfeature.dev/specification/sections/hooks) for more details. | ||
| They operate similarly to middleware in many web frameworks. | ||
| Please see the [spec](https://openfeature.dev/specification/sections/hooks) for more details. |
This file contains hidden or 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,6 @@ | ||
| # OpenFeature Python Providers | ||
| Providers are responsible for performing flag evaluation. They provide an abstraction between the underlying | ||
| flag management system and OpenFeature itself. This allows providers to be changed without requiring a major | ||
| code refactor. Please see the [spec]("https://github.com/open-feature/spec/blob/main/specification/sections/02-providers.md") | ||
| for more details. | ||
|
|
||
| Providers are responsible for performing flag evaluation. | ||
| They provide an abstraction between the underlying flag management system and OpenFeature itself. | ||
| This allows providers to be changed without requiring a major code refactor. | ||
| Please see the [spec](https://openfeature.dev/specification/sections/providers) for more details. |
This file contains hidden or 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,84 @@ | ||
| { | ||
| "bootstrap-sha": "1cef37c5d8c7d97ee52a8e6b71f12150063b8503", | ||
| "separate-pull-requests": true, | ||
| "release-type": "python", | ||
| "bump-minor-pre-major": true, | ||
| "bump-patch-for-minor-pre-major": true, | ||
| "include-component-in-tag": true, | ||
| "tag-separator": "/", | ||
| "packages": { | ||
| "providers/openfeature-provider-flagd": { | ||
| "package-name": "providers/flagd", | ||
| "bump-minor-pre-major": true, | ||
| "bump-patch-for-minor-pre-major": true, | ||
| "versioning": "default", | ||
| "extra-files": [ | ||
| "README.md" | ||
| ] | ||
| }, | ||
| "hooks/openfeature-hooks-opentelemetry": { | ||
| "package-name": "hooks/opentelemetry", | ||
| "bump-minor-pre-major": true, | ||
| "bump-patch-for-minor-pre-major": true, | ||
| "versioning": "default", | ||
| "extra-files": [ | ||
| "README.md" | ||
| ] | ||
| } | ||
| }, | ||
| "changelog-sections": [ | ||
| { | ||
| "type": "fix", | ||
| "section": "🐛 Bug Fixes" | ||
| }, | ||
| { | ||
| "type": "feat", | ||
| "section": "✨ New Features" | ||
| }, | ||
| { | ||
| "type": "chore", | ||
| "section": "🧹 Chore" | ||
| }, | ||
| { | ||
| "type": "docs", | ||
| "section": "📚 Documentation" | ||
| }, | ||
| { | ||
| "type": "perf", | ||
| "section": "🚀 Performance" | ||
| }, | ||
| { | ||
| "type": "build", | ||
| "hidden": true, | ||
| "section": "🛠️ Build" | ||
| }, | ||
| { | ||
| "type": "deps", | ||
| "section": "📦 Dependencies" | ||
| }, | ||
| { | ||
| "type": "ci", | ||
| "hidden": true, | ||
| "section": "🚦 CI" | ||
| }, | ||
| { | ||
| "type": "refactor", | ||
| "section": "🔄 Refactoring" | ||
| }, | ||
| { | ||
| "type": "revert", | ||
| "section": "🔙 Reverts" | ||
| }, | ||
| { | ||
| "type": "style", | ||
| "hidden": true, | ||
| "section": "🎨 Styling" | ||
| }, | ||
| { | ||
| "type": "test", | ||
| "hidden": true, | ||
| "section": "🧪 Tests" | ||
| } | ||
| ], | ||
federicobond marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" | ||
| } | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.