Skip to content

Commit

Permalink
Merge pull request #4 from SolaceDev/main
Browse files Browse the repository at this point in the history
Add CI and Release workflows
  • Loading branch information
artyom-morozov authored Jul 24, 2024
2 parents 7bc3590 + f6c1b62 commit 5100a90
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 2 deletions.
10 changes: 10 additions & 0 deletions .env_template
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>
20 changes: 20 additions & 0 deletions .github/workflows/ci.yaml
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 }}
25 changes: 25 additions & 0 deletions .github/workflows/release.yaml
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 }}
11 changes: 9 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]" },
]
Expand All @@ -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]
Expand All @@ -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"]
3 changes: 3 additions & 0 deletions src/solace_ai_connector_slack/components/__init__.py
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"

0 comments on commit 5100a90

Please sign in to comment.