Skip to content

Commit e8731ab

Browse files
ci: fix Docker build workflow and update runner to Ubuntu 24.04
Co-Authored-By: [email protected] <[email protected]>
1 parent 7fda205 commit e8731ab

File tree

1 file changed

+26
-1
lines changed

1 file changed

+26
-1
lines changed

Diff for: .github/workflows/docker-build-check.yml

+26-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
docker-build-check:
1010
name: Docker Build Check
11-
runs-on: ubuntu-22.04
11+
runs-on: ubuntu-24.04
1212
permissions:
1313
contents: write # Required for creating commit statuses
1414
pull-requests: read
@@ -30,6 +30,31 @@ jobs:
3030
3131
- name: Checkout code
3232
uses: actions/checkout@v4
33+
with:
34+
fetch-depth: 0
35+
36+
- name: Set up Python
37+
uses: actions/setup-python@v5
38+
with:
39+
python-version: "3.10"
40+
cache: "poetry"
41+
42+
- name: Set up Poetry
43+
uses: Gr1N/setup-poetry@v9
44+
with:
45+
poetry-version: "2.0.1"
46+
47+
# Build the Python package to create the wheel files needed for the Docker build
48+
- name: Build Python Package
49+
uses: hynek/build-and-inspect-python-package@v2
50+
env:
51+
POETRY_DYNAMIC_VERSIONING_BYPASS: "0.0.0dev0"
52+
53+
# Copy the wheel files to the dist directory
54+
- name: Copy wheel files to dist directory
55+
run: |
56+
mkdir -p dist
57+
cp /tmp/baipp/dist/*.whl dist/
3358
3459
- name: Set up QEMU for multi-platform builds
3560
uses: docker/setup-qemu-action@v3

0 commit comments

Comments
 (0)