38
38
REDIRECT_URI : ${{ vars.REDIRECT_URI }}
39
39
SECRET_KEY : ${{ secrets.SECRET_KEY }}
40
40
SELF_ID : ${{ secrets.SELF_ID }}
41
+ SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
41
42
SIGNING_KEY_ID : ${{ secrets.SIGNING_KEY_ID }}
42
43
SIGNING_SECRET : ${{ secrets.SIGNING_SECRET }}
43
44
TOKEN_URL : ${{ vars.TOKEN_URL }}
51
52
# TODO: avoid hardcoding the image name
52
53
services :
53
54
server :
54
- image : ghcr.io/pythoninthegrass/meetup-bot
55
+ image : ghcr.io/pythoninthegrass/meetup_bot:latest
55
56
ports :
56
57
- 3000:3000
57
58
env :
@@ -76,12 +77,13 @@ jobs:
76
77
SELF_ID : ${{ env.SELF_ID }}
77
78
SIGNING_KEY_ID : ${{ env.SIGNING_KEY_ID }}
78
79
SIGNING_SECRET : ${{ env.SIGNING_SECRET }}
80
+ SLACK_WEBHOOK : ${{ env.SLACK_WEBHOOK }}
79
81
TOKEN_URL : ${{ env.TOKEN_URL }}
80
82
TZ : ${{ env.TZ }}
81
83
USER_TOKEN : ${{ env.USER_TOKEN }}
82
84
83
85
container :
84
- image : python:3.11.9-slim-bullseye
86
+ image : ghcr.io/pythoninthegrass/meetup_bot:test
85
87
86
88
concurrency :
87
89
group : ${{ github.workflow }}-${{ github.ref }}
90
92
steps :
91
93
- uses : actions/checkout@v4
92
94
93
- - name : Install system dependencies
94
- run : |
95
- apt-get -qq update \
96
- && apt-get -qq install \
97
- --no-install-recommends -y \
98
- curl \
99
- gcc \
100
- git \
101
- python3-dev \
102
- && rm -rf /var/lib/apt/lists/*
103
-
104
- - name : Install Python dependencies
105
- run : |
106
- python -m pip install --upgrade pip pytest
107
- python -m pip install -r requirements.txt
108
-
109
- # - name: Wait for server to be ready
110
- # run: |
111
- # timeout 60s bash -c 'while [[ "$(curl -s -o /dev/null -w ''%{http_code}'' server:3000/healthz)" != "200" ]]; do sleep 5; done' || false
112
-
113
95
- name : Run pytest
114
96
run : pytest -s
115
97
env :
0 commit comments