-
Notifications
You must be signed in to change notification settings - Fork 1
47 lines (39 loc) · 1.15 KB
/
parity.yml
File metadata and controls
47 lines (39 loc) · 1.15 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
40
41
42
43
44
45
46
47
name: Parity With andaluh-py
on:
repository_dispatch:
types: [andaluh_py_release]
workflow_dispatch:
schedule:
- cron: "15 1 * * *"
jobs:
parity:
runs-on: ubuntu-latest
steps:
- name: Checkout andaluh-java
uses: actions/checkout@v4
- name: Checkout andaluh-py
uses: actions/checkout@v4
with:
repository: andalugeeks/andaluh-py
path: andaluh-py
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Generate Python golden CSV
run: |
python3 scripts/gen_python_expected.py \
--andaluh-py andaluh-py \
--input andaluh-py/tests/lemario_cas_and.csv \
--output out/lemario_py.csv
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: "temurin"
java-version: "17"
- name: Compile
run: |
javac -cp "lib/argparse4j-0.8.1.jar" -d out $(find src -name '*.java')
- name: Run parity tests
run: |
java -cp out com.andaluh.AndaluhTestRunner out/lemario_py.csv --min-rate=1.0