Skip to content
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

Add CI and Release workflows #4

Merged
merged 3 commits into from
Jul 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading