-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (31 loc) · 1.05 KB
/
Copy pathparity.yml
File metadata and controls
39 lines (31 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: parity
# The three ports must stay bit-identical; tools/parity.py is the proof.
# It caught a real divergence once (Java decoded grayscale images through a
# linear-gray colour space), so it runs on every change to a port.
on:
push:
paths: ['ports/**', 'js/**', 'tools/**', '.github/workflows/parity.yml']
pull_request:
paths: ['ports/**', 'js/**', 'tools/**', '.github/workflows/parity.yml']
workflow_dispatch:
jobs:
parity:
runs-on: ubuntu-latest
strategy:
matrix:
java: [11, 21] # the README promises Java 11+; 21 is the current LTS
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
- uses: actions/setup-node@v4
with:
node-version: '20'
- run: pip install numpy opencv-python-headless
- name: Python, Java and JS must agree pixel for pixel
run: python tools/parity.py