-
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.
Merge pull request #4 from SolaceDev/main
Add CI and Release workflows
- Loading branch information
Showing
5 changed files
with
67 additions
and
2 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,10 @@ | ||
SOLACE_BROKER_URL="tcps://your_service.messaging.solace.cloud:55443" | ||
SOLACE_BROKER_USERNAME= | ||
SOLACE_BROKER_PASSWORD= | ||
SOLACE_BROKER_VPN= | ||
SOLACE_BROKER_TRUST_STORE_PATH="/usr/share/ca-certificates/mozilla" | ||
|
||
AZURE_OPENAI_API_KEY=<api_key> | ||
AZURE_OPENAI_API_ENDPOINT=<api_endpoint> | ||
AZURE_OPENAI_API_VERSION=<api_version> | ||
AZURE_OPENAI_MODEL_DEPLOYMENT=<model_deployment_id> |
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,20 @@ | ||
name: CI | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
permissions: | ||
id-token: write | ||
checks: write | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
ci: | ||
uses: SolaceDev/solace-public-workflows/.github/workflows/[email protected] | ||
secrets: | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
SONAR_HOST_URL: ${{ vars.SONAR_HOST_URL }} |
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,25 @@ | ||
name: Release | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
type: choice | ||
required: true | ||
description: "Version bump type" | ||
options: | ||
- patch | ||
- minor | ||
- major | ||
|
||
permissions: | ||
id-token: write | ||
checks: write | ||
|
||
jobs: | ||
release: | ||
uses: SolaceDev/solace-public-workflows/.github/workflows/[email protected] | ||
with: | ||
version: ${{ github.event.inputs.version }} | ||
pypi-project: solace-ai-connector-slack | ||
secrets: | ||
COMMIT_KEY: ${{ secrets.COMMIT_KEY }} |
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 |
---|---|---|
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build" | |
|
||
[project] | ||
name = "solace_ai_connector_slack" | ||
version = "0.0.1" | ||
dynamic = ["version"] | ||
authors = [ | ||
{ name="Edward Funnekotter", email="[email protected]" }, | ||
] | ||
|
@@ -20,7 +20,7 @@ classifiers = [ | |
dependencies = [ | ||
"PyYAML>=6.0.1", | ||
"slack_bolt>=1.18.1", | ||
"solace_ai_connector>=0.0.1", | ||
"solace_ai_connector>=0.1.1", | ||
] | ||
|
||
[project.urls] | ||
|
@@ -31,3 +31,10 @@ documentation = "https://github.com/SolaceLabs/solace-ai-connector-slack/blob/ma | |
|
||
[tool.hatch.build.targets.wheel] | ||
packages = ["src/solace_ai_connector_slack"] | ||
|
||
[tool.hatch.version] | ||
path = "src/solace_ai_connector_slack/components/__init__.py" | ||
|
||
[tool.ruff] | ||
lint.select = ["E4", "E7", "E9", "F"] | ||
lint.ignore = ["F401", "E731"] |
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,3 @@ | ||
# Internal components that are dynamically loaded by the AI Connector | ||
# Listing them here allows for them to use relative imports | ||
__version__ = "0.0.1" |