Skip to content

Commit 8292d9d

Browse files
committed
py3.13 runtime
1 parent 3d9d7c0 commit 8292d9d

File tree

2 files changed

+20
-6
lines changed

2 files changed

+20
-6
lines changed

.github/workflows/ci.yml

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@ jobs:
55
weasyprint-build:
66
name: Build WeasyPrint
77
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
version: ["3.12", "3.13"]
11+
env:
12+
RUNTIME: ${{ matrix.version }}
813
steps:
914
- uses: actions/checkout@v4
1015
- name: Build Layer
11-
run: make build/weasyprint-layer-python3.12.zip
16+
run: make build/weasyprint-layer-python${{ matrix.version }}.zip
1217
- name: Test weasyprint
1318
run: |
1419
mkdir output
1520
make test.start.container &
1621
sleep 1
17-
TEST_FILENAME=output/report.pdf make test.print.report
22+
make test.print.report
1823
rm -rf build/opt
24+
env:
25+
TEST_FILENAME: output/report${{ matrix.version }}.pdf
1926
- name: Upload Build
2027
uses: actions/upload-artifact@v4
2128
with:
@@ -26,13 +33,20 @@ jobs:
2633
with:
2734
name: WeasyPrint Test Results
2835
path: output
36+
weasyprint-release:
37+
name: Release WeasyPrint
38+
runs-on: ubuntu-latest
39+
needs: [weasyprint-build]
40+
steps:
41+
- name: Download build
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: build
2945
- name: Create WeasyPrint Release
3046
if: startsWith(github.ref, 'refs/tags/weasyprint-')
3147
uses: softprops/action-gh-release@4634c16e79c963813287e889244c50009e7f0981
3248
with:
33-
files: |
34-
./build/weasyprint-layer-python3.12.zip
35-
./build/weasyprint-layer-python3.12-no-fonts.zip
49+
files: ./build/weasyprint-layer-python*
3650

3751
ghostscript-build:
3852
name: Build GhostScript

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PLATFORM ?= linux/amd64
22
RUNTIME ?= 3.12
33
TEST_FILENAME ?= report.pdf
4-
DOCKER_RUN=docker run --rm --platform=${PLATFORM}
4+
DOCKER_RUN=docker run --rm --platform=${PLATFORM} -e RUNTIME_VERSION=${RUNTIME}
55

66
.PHONY: stack.deploy.weasyprint clean test.start.container test.print.report
77

0 commit comments

Comments
 (0)