-
Notifications
You must be signed in to change notification settings - Fork 33
64 lines (54 loc) · 1.62 KB
/
tests.yml
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
name: Tests
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0' # weekly
env:
JOBS: 2
DEPS: libgmp-dev libmpfr-dev libqd-dev libtool autoconf python3-pip python3-dev python3-flake8
jobs:
python3:
runs-on: ubuntu-latest
steps:
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Check out
uses: actions/checkout@v2
- name: Install prerequisites
run: |
sudo DEBIAN_FRONTEND=noninteractive apt-get update
sudo DEBIAN_FRONTEND=noninteractive apt-get install $DEPS
- name: Dependencies
run: |
git clone https://github.com/fplll/fplll
cd fplll || exit
./autogen.sh
./configure --disable-static --prefix=/usr --with-max-enum-dim=64 --with-max-parallel-enum-dim=20
make -j $JOBS
sudo make install
cd ..
git clone https://github.com/fplll/fpylll
cd fpylll || exit
pip install -r requirements.txt
pip install -r suggestions.txt
python setup.py build_ext -j $JOBS
python setup.py install
cd ..
# Otherwise py.test may fail
rm -rf ./fplll
rm -rf ./fpylll
# G6K requirements
pip install -r requirements.txt
- name: Compile Kernel
run: |
autoreconf -i
CXXFLAGS="-Werror" ./configure
make -j $JOBS
- name: Compile Python
run: python setup.py build_ext -j $JOBS --inplace
- name: Test
run: python -m pytest