Repository navigation
75 lines (62 loc) · 1.91 KB
/
Copy pathregression.yml
File metadata and controls
75 lines (62 loc) · 1.91 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Regression test
on:
push:
branches:
- main
paths-ignore:
- 'docs/**'
- 'notebooks/**'
- '**.md'
pull_request:
branches:
- '**'
paths-ignore:
- 'docs/**'
- 'notebooks/**'
- '**.md'
workflow_dispatch:
permissions:
contents: read
# Cancel a PR's previous run when a new commit is pushed. Other events are grouped by commit SHA,
# so pushes to main never cancel each other.
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs:
build-and-test:
name: Test decoding quantities can be generated
runs-on: ubuntu-26.04
timeout-minutes: 20
env:
CXX: g++-15
steps:
- name: checkout repo
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: install system packages
run: |
sudo apt -y update
sudo apt -y install libgmp-dev libmpfr-dev zlib1g-dev
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: 3.15
- name: install python bindings
run: |
python -m pip install .
- name: make build directory
run: mkdir build_dir
- name: compile prepare decoding
run: |
cmake .. -DCMAKE_BUILD_TYPE=Release
cmake --build . --parallel 4 --target prepare_decoding_exe
working-directory: build_dir
- name: generate & check decoding quantities (executable)
run: |
bash test_prepare.sh ../../build_dir/exe/prepare_decoding_exe
working-directory: test/regression
- name: generate & check decoding quantities (python)
run: |
bash test_prepare_python.sh
working-directory: test/regression