Skip to content

Commit b6a2410

Browse files
committed
Add one more test + correct the test.
1 parent 0c46f5b commit b6a2410

File tree

2 files changed

+56
-5
lines changed

2 files changed

+56
-5
lines changed

.github/workflows/ci_05_schedule_number_theory_tests.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ jobs:
1717
BOOST_LINK: "/usr/lib/x86_64-linux-gnu/libboost_serialization.a"
1818
EIGEN_PATH: /home/runner/work/opt/eigen
1919

20-
21-
22-
23-
24-
2520
steps:
2621
- uses: actions/checkout@v4
2722

@@ -32,6 +27,7 @@ jobs:
3227
3328
- name: Install non-standard dependencies
3429
run: |
30+
mkdir -p /home/runner/opt
3531
# We need specific version 3.3.9 because of a bug in 3.4.0 for algebraic data types.
3632
wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
3733
tar -xzf eigen-3.3.9.tar.gz
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Matrix Tests
2+
3+
on:
4+
# Every 20th of the month at midnight
5+
schedule:
6+
- cron: "0 0 20 * *"
7+
# Manually triggered
8+
workflow_dispatch:
9+
10+
jobs:
11+
matrix-tests:
12+
runs-on: ubuntu-latest
13+
env:
14+
GMP_INCDIR: /usr/include
15+
GMP_CXX_LINK: "-lm -lgmp -lgmpxx"
16+
BOOST_INCDIR: "/usr/include"
17+
BOOST_LINK: "/usr/lib/x86_64-linux-gnu/libboost_serialization.a"
18+
EIGEN_PATH: /home/runner/work/opt/eigen
19+
20+
steps:
21+
- uses: actions/checkout@v4
22+
23+
- name: Install standard dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install -y build-essential libgmp-dev libeigen3-dev libboost-all-dev
27+
28+
- name: Install non-standard dependencies
29+
run: |
30+
# We need specific version 3.3.9 because of a bug in 3.4.0 for algebraic data types.
31+
wget -q https://gitlab.com/libeigen/eigen/-/archive/3.3.9/eigen-3.3.9.tar.gz
32+
tar -xzf eigen-3.3.9.tar.gz
33+
mv eigen-3.3.9 /home/runner/work/opt/eigen
34+
pwd
35+
echo "After eigen-3.3.9 set up"
36+
37+
- name: Build matrix tests
38+
run: |
39+
cd src_matrix
40+
make Test_MatrixInverse Test_PerformanceHNF Test_HilbertMatrix Test_NullspaceComputation Test_SubspaceCompletion Test_FindIsotropicMod
41+
42+
- name: Test_MatrixInverse
43+
run: cd src_matrix && ./Test_MatrixInverse mpz_class 10
44+
45+
- name: Test_PerformanceHNF
46+
run: cd src_matrix && ./Test_PerformanceHNF 10 10
47+
48+
- name: Test_HilbertMatrix
49+
run: cd src_matrix && ./Test_HilbertMatrix mpq_class 10
50+
51+
- name: Test_NullspaceComputation
52+
run: cd src_matrix && ./Test_NullspaceComputation
53+
54+
- name: Test_SubspaceCompletion
55+
run: cd src_matrix && ./Test_SubspaceCompletion 15 10

0 commit comments

Comments
 (0)