- create the
ENV_VARS
file containing theSLACK_BOT_TOKEN
andSLACK_APP_TOKEN
SLACK_BOT_TOKEN=xoxb-<REPLACEME> SLACK_APP_TOKEN=xapp-<REPLACEME>
- install the requirements and activate the virtual environment, see the pre-work section in docs/development.md for more details
- export the environment variables
source ~/.secrets/ENV_VARS
- run
app.py
export PYTHONPATH=.; export SLACK_BOT_TOKEN; export SLACK_APP_TOKEN; python slackapp/app.py
- pull the image locally
docker pull ghcr.io/markgreene74/slack-app:latest
- start the container
docker run \ --env-file ~/.secrets/ENV_VARS \ --rm \ slack-app
A devcontainer.json file has been added for custom Codespaces which include pre-commit
hooks. See the GitHub documentation about creating a codespace to work on slack-app
.
Multiple GitHub Actions (workflow) are configured to ensure automated testing, linting and security scans (Snyk).
Actions:
on push |
on PR | schedule | run manually | |
---|---|---|---|---|
CodeQL | main |
main |
Y | N |
Build and publish | main |
N | N | Y |
Run tests and lint | main , feature/** |
main |
N | Y |
Release | main |
main |
N | N |
Snyk | main |
main |
N | N |
See: docs/development.md
See: docs/running-slack-app.md
See: docs/miscellanea.md
- PyPI
- github
- slack.com
- slack.dev/bolt-python