Compare commits
7
Commits
8f4d763048
...
2.1.4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
edd39febd1 | ||
|
|
33766f0b0b | ||
|
|
f954ace53b | ||
|
|
6df2d561d9 | ||
|
|
18c894f780 | ||
|
|
ca4240c84a | ||
|
|
83d2dc7ee6 |
+12
-10
@@ -18,23 +18,23 @@ jobs:
|
||||
fetch-depth: 0
|
||||
persist-credentials: false
|
||||
|
||||
- name: Build prod image
|
||||
- name: Build Docker image
|
||||
run: |
|
||||
docker build -t lumeex:ci . 2>&1 | tee build.log
|
||||
if grep -q "Building wheel for" build.log; then
|
||||
echo "::warning::A dependency was built from source — check Python/Alpine compatibility"
|
||||
fi
|
||||
|
||||
- name: Smoke test
|
||||
- name: Smoke test (syntax check)
|
||||
run: |
|
||||
docker run --rm --entrypoint python lumeex:ci -c "
|
||||
import ast, glob
|
||||
import ast
|
||||
ok = True
|
||||
for f in glob.glob('/app/*.py'):
|
||||
for f in ('build.py', 'gallery.py'):
|
||||
with open(f) as fh:
|
||||
source = fh.read()
|
||||
try:
|
||||
ast.parse(source, filename=f)
|
||||
ast.parse(source)
|
||||
except SyntaxError as e:
|
||||
print(f'::error::Syntax error in {f}: {e}')
|
||||
ok = False
|
||||
@@ -99,7 +99,7 @@ jobs:
|
||||
git config user.name "lumeex-ci"
|
||||
git config user.email "[email protected]"
|
||||
git add VERSION
|
||||
git commit -m "chore: bump version to $NEW_VERSION [skip ci]"
|
||||
git commit -m "Bump build version to $NEW_VERSION [skip ci]"
|
||||
|
||||
# Belt and suspenders: actions/checkout can leave its own ephemeral
|
||||
# credential injected as an extraheader, which would silently override
|
||||
@@ -151,9 +151,9 @@ jobs:
|
||||
fi
|
||||
fi
|
||||
|
||||
CHANGED_LIST=$(echo "$CHANGED" | sed 's/^/- /')
|
||||
|
||||
REPO_URL="https://git.djeex.fr/Djeex/lumeex"
|
||||
COMMIT_LIST=$(git log --no-merges --format="- [%h](${REPO_URL}/commit/%H) %s" "$BASE_REF".."${{ github.sha }}")
|
||||
|
||||
SHORT_SHA=$(echo "${{ github.sha }}" | cut -c1-7)
|
||||
SOURCE_LINE="[${SHORT_SHA}](${REPO_URL}/commit/${{ github.sha }})"
|
||||
if [ -n "$PR_NUM" ]; then
|
||||
@@ -162,15 +162,17 @@ jobs:
|
||||
|
||||
BODY=$(cat <<EOF
|
||||
## Changelog
|
||||
---
|
||||
|
||||
### ${CATEGORY}
|
||||
---
|
||||
${CHANGE_TITLE}
|
||||
|
||||
**Source:** ${SOURCE_LINE}
|
||||
**Image:** \`${IMAGE}:${VERSION}\`
|
||||
|
||||
**Changed files:**
|
||||
${CHANGED_LIST}
|
||||
**Commits:**
|
||||
${COMMIT_LIST}
|
||||
EOF
|
||||
)
|
||||
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
FROM python:3.13.15-alpine AS builder
|
||||
FROM python:3.14.7-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
@@ -7,7 +7,7 @@ RUN apk add --no-cache gcc musl-dev jpeg-dev zlib-dev
|
||||
COPY requirements.txt .
|
||||
RUN pip wheel --no-cache-dir --wheel-dir=/wheels -r requirements.txt
|
||||
|
||||
FROM python:3.13.15-alpine AS base
|
||||
FROM python:3.14.7-alpine AS base
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
-r requirements.txt
|
||||
pytest==8.4.2
|
||||
pytest-cov==7.0.0
|
||||
pytest-cov==7.1.0
|
||||
|
||||
Reference in New Issue
Block a user