mirror of
https://github.com/greenart7c3/Amber.git
synced 2026-10-30 06:47:33 +00:00
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.
41 lines
1.0 KiB
YAML
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
|