Files
Amber/.github/workflows/python-regressions.yml
greenart7c3 26017fb368 Make the Linux desktop downloads reproducible and add a check for them
Two builds of the same commit differed only in skiko-awt-runtime-*.jar,
which Compose 1.12 rewrites with the build time (and so in its hashed
name and Amber.cfg); rewrite it with a fixed timestamp on Linux. CI also
bundled the runner's preinstalled JDK, whose jrt-fs.jar differs from the
official Temurin archive, so make setup-java download the archive.

Dockerfile.desktop rebuilds a tag and compares the published .tar.xz and
AppImage with desktopdiff.py, like Dockerfile/apkdiff.py for Android.
2026-10-25 12:02:58 -03:00

41 lines
1.0 KiB
YAML

name: Python regressions
on:
pull_request:
paths:
- 'tests/**'
- 'apkdiff.py'
- 'desktopdiff.py'
- '.github/workflows/**'
push:
branches: [master]
paths:
- 'tests/**'
- 'apkdiff.py'
- 'desktopdiff.py'
- '.github/workflows/**'
permissions:
contents: read
jobs:
python-regressions:
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
# The tests run code from the PR, and this job never pushes.
persist-credentials: false
# Pinned so a runner image update can't change the result.
- uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7
with:
python-version: '3.14'
# Since Python 3.12, discover fails when it finds no tests, so a removed
# or renamed suite fails this job instead of passing silently.
- name: Run Python regression tests
run: python -m unittest discover -s tests -p 'test_*.py' -v