File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Build
2
+ on :
3
+ push :
4
+ branches :
5
+ - ' **'
6
+
7
+ jobs :
8
+ build :
9
+ runs-on : ubuntu-latest
10
+ permissions :
11
+ contents : read
12
+
13
+ steps :
14
+ - name : Install Docker Buildx
15
+ uses : docker/setup-buildx-action@v2
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v5
18
+ with :
19
+ python-version : ' 3.11'
20
+
21
+ - name : Install poetry
22
+ run : pipx install poetry
23
+
24
+ - name : Checkout Repo
25
+ uses : actions/checkout@v4
26
+
27
+ - name : Set up cache for Poetry dependencies
28
+ uses : actions/cache@v4
29
+ with :
30
+ path : ~/.cache/pypoetry
31
+ key : poetry-${{ hashFiles('app/poetry.lock') }}
32
+
33
+ - name : Install Python dependencies with Poetry
34
+ working-directory : ./app
35
+ run : poetry install --no-interaction --no-root
36
+
37
+ - name : Build Docker image
38
+ working-directory : ./app
39
+ run : |
40
+ docker buildx build \
41
+ --platform linux/amd64,linux/arm64 \
42
+ .
43
+
44
+ - name : Run intercom test
45
+ run : python app/test_intercom.py
You can’t perform that action at this time.
0 commit comments