generated from okp4/template-oss
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (37 loc) · 866 Bytes
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Build
on:
workflow_call:
push:
branches: [ main ]
pull_request:
branches: [ main ]
concurrency:
group: build-${{ github.ref }}
cancel-in-progress: true
jobs:
build-python:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: 3.9
- name: Install Python Poetry
uses: abatilo/[email protected]
with:
poetry-version: 1.3.1
- name: Install project dependencies
run: |
poetry install
- name: Build project
run: |
poetry build
build-docker:
runs-on: ubuntu-22.04
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Make docker image
run: |
docker build .